4
$\begingroup$

I've come across two generating functions for the Fibonacci sequence, $$ F(z) = \frac{1}{1-z-z^2} \quad\text{and}\quad F(z) = \frac{z}{1-z-z^2} \,. $$ I've seen both of their proofs and both of them seem legible, but I'm still unable two understand how both the equations give same function.

$\endgroup$

1 Answer 1

12
$\begingroup$

You get two different generating functions by using two different definitions of the Fibonacci sequence $(a_n)_n$: if we choose the starting terms as $a_0 = 1$ and $a_1 = 1$, then we will get the generating function $1 / (1 - z - z^2)$; if we choose $a_0 = 0$ and $a_1 = 1$, then we get the generating function $z / (1 - z - z^2)$ instead.

If more generally $(a_n)_n$ is any sequence defined via the recursive relation $a_{n + 2} = a_{n + 1} + a_n$ and two starting terms $a_0$ and $a_1$, then the generating functon $F = \sum_{n = 0}^∞ a_n z^n$ will satisfy $$ F - a_1 z - a_0 = z^2 F + z F - a_0 z \,, $$ resulting in the explicit formula $$ F = \frac{a_0 + (a_1 - a_0) z}{1 - z - z^2} \,. $$

$\endgroup$
1
  • 3
    $\begingroup$ By the way, the indexing used in the Fibonacci Quarterly is $f_0 = 0$, $f_1 = 1$ (the way I remember this is $f_5 = 5$), i.e., the generating function with the $z$ in the numerator. $\endgroup$ Commented Dec 10, 2022 at 7:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .