[Seqfan] Re: [Seqfan] Re: Need some help from Fibonacci experts...

Ralf Stephan ralf at ark.in-berlin.de
Sat Jul 30 16:22:16 CEST 2005

>   Now, how can I get P(x)/Q(x) if I suspect them to be polynomials
>   (which seems to be the case for the functions I use) ? Ie. how
>   did you get yourself to find the ogf of my functions from this
>   last step ?

Also with LLL!  This routine


uses the fact that every sequence having a rational g.f. obeys a linear
recurrence with constant coefficients. That is, you fill the matrix
with shifted copies of the sequence, then LLL will find the recurrence.

I cannot stress enough on the list the beautiful fact that the denominator
polynomial of the rational g.f. already contains everything about the
recurrence and vice versa. It can be simply read off. Knowing this by
heart makes many questions unnecessary.


More information about the SeqFan mailing list