The Fibonacci sequence, one of the most renowned number sequences in mathematics, is named after Leonardo of Pisa, a prominent mathematician of the European Middle Ages. Born in 1170 into the Bonacci family, Leonardo later became known as Fibonacci — a name derived from the Latin phrase Filius Bonacci, meaning "son of Bonacci."
In his book Liber Abaci (1202), he introduced the now-famous Fibonacci sequence:
This sequence arose from an arithmetic problem about counting rabbit pairs, where each term represents the total number of rabbit pairs in a given month. The pattern is that each term is the sum of the two preceding terms. This means the Fibonacci sequence can be defined recursively as follows:
It turns out that the Fibonacci sequence also has a closed-form expression, known as Binet's formula. It is given by:
where:
Here, \(\phi\) and \(\psi\) are the roots of the characteristic equation associated with the Fibonacci recurrence relation. Binet's formula provides an exact value for \(F_{n}\) without requiring recursive computation, beautifully connecting the Fibonacci sequence to algebra and the golden ratio.
For any sequence of numbers, there exists an associated generating function that encodes the sequence into a formal power series. Given a sequence \(\{a_n\}_{n=0}^{\infty}\), the generating function \(G(x)\) is defined as:
If we change the sequence by adding \(k\) zeros to the left \(\{0, 0, ..., 0, a_{0}, a_{1}, a_{2}, ... \}\), then the new generating function is \(x^{k}G(x) = a_{0} x^{k} + a_{1} x^{k+1} + a_{2} x^{k+2} + ...\).
Recall that the Fibonacci sequence are defined by the recurrence relation
We begin by defining the generating function for the Fibonacci sequence as the formal power series whose coefficients are the Fibonacci sequence themselves,
When dealing with a recurrence relation like the Fibonacci sequence, where the recurrence starts with two defined initial terms (\(F_{0}\) and \(F_{1}\)), shifting the generating function twice to the right is necessary to properly represent the recurrence algebraically.
We multiply the generating function for the Fibonacci sequence with \(x\) and \(x^{2}\) to shift the terms:
When we multiply \(F(x)\) by \(x\), it shifts all terms of the sequence to the right by one position:
When we multiply \(F(x)\) by \(x^{2}\), it shifts all terms of the sequence to the right by two positions:
The initial terms \(F_{0}\) and \(F_{1}\) need to be added explicitly because they are not part of the recurrence relation and subsitute the recurrence relation for \(F_{n}\) into the coefficients of the sum.
From the initial conditions \(F_{0} = 0\) and \(F_{1} = 1\), the equation simplifies to:
Sovling for the generating function, we get:
Now that we have found a closed form for the generating function, all that remains is to express this function as a power series. After doing so, we may match its coefficients term-by-term with the corresponding Fibonacci numbers. The roots of the polynomial \(1 − x − x^{2}\) are \(-\phi\) and \(-\psi\), where
and
so the polynomial factors as \(1-x-x^{2}=-(x+\phi)(x+\psi)\).
In order to express the generating function as a power series, we will use the partial fraction decomposition to express it in the form
which is equivalent to
Letting \(x=-\phi\):
Using the fact that \(\psi-\phi=-\sqrt{5}\), we get:
Letting \(x=-\psi\):
Using the fact that \(\phi-\psi=\sqrt{5}\), we get:
Now substitute these values of \(A\) and \(B\) into the partial fraction decomposition and we get:
Recall that the sum of a geometric series is given by
assuming \(|x| \lt 1\) for convergence.
The roots \(\phi\) and \(\psi\) are conjugates of each other, and they satisfy the product of the roots relationships:
Using the fact that \(\phi=-\frac{1}{\psi}\), we can rewrite the first term of the generating function as
Similarly,
so
Since the definition of \(F(x)\) was
we match the coefficients on corresponding powers of \(x\) in these two expressions for \(F(x)\) to finally arrive at the desired closed form for the n-th Fibonacci number,