2011/4/17 raman :
> Hello Dears
> could you please tell me how I can write the recurrence relation by
> sage?
>
> for example
> p(n)=2p(n-1)+p(n-2) where p(0)=1 and p(1)=3
you could do this:
def p(n):
if n == 0: return 1
if n == 1: return 3
l = (1,3)
for i in xrange(n-1):
Hello Dears
could you please tell me how I can write the recurrence relation by
sage?
for example
p(n)=2p(n-1)+p(n-2) where p(0)=1 and p(1)=3
--
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to
sage-support+unsubscr...@googlegroups
I have a system of polynomial equations with rational coefficients and
I have one rational solution. I am trying to find a recurrence
relation that will allow me to generate additional rational
solutions. The equations are:
A6x0^2+A5x1^2+A4x2^2+A3x0x1+A2x0x2+A1x1x2+A0=0 (a)
B6y0^2+B5y1^2+B4y2^