Fibonacci closed-form expression without ansatz
This blog is part of a series dedicated to Fibonacci sequence. In the Series page you can find the other posts of the series. |
In a previous blog, I showed how using an ansatz we can verify the closed-form expression of the Fibonacci sequence.
In this blog, I will show how to derive this expression without the support of an ansatz. Although there are several alternatives for doing this (such as using linear algebra1), in this post I will use generating function approach following an exercise extracted from my favorite book about algorithms2.
The generating function for the Fibonacci sequence is defined by the following infinite series
where if the n-th Fibonacci number. Let’s assume that there is a in which the series is absolutely convergent for , in where is convergence ratio. The analytical function defined by codifies the whole Fibonacci sequence in the values of its derivatives for or
Now it is true for the following expression
Here it is the proof of the previous expression,
in where in the last steps I use the recurrence expression of the Fibonacci sequence and the fact the initial conditions are and .
Implicitly, I have assumed that all intermediary series are absolutely convergent! For example, it is important to realize that should at least because is the infinite sum of the whole Fibonacci sequence and therefore it diverges. However, previous expression gives that . Infinities series are magical, but they are not inconsistently magical!
Using the expression of generating function and the fact that polynomial in the denominator can be factorized where and are its roots, then
where and are the reciprocal of the roots of the polynomial in the denominator or
and moreover . Now, by doing partial fraction decomposition3 we can obtain
in where the last points we use the fact that and geometric series result
The geometric series converge absolutely if , that in this case implies and therefore, the radius of convergence is .
The last expression for implies then that each term of the Fibonacci sequence is given by
I derived the equation by analyzing and rewriting the generating function of the sequence without using an ansatz.
The main takeaway from this exercise is that you can use properties of an analytical function to derive facts about a discrete sequence of integers. In this particular case, this approach was used to find an efficient way for computing the Fibonacci sequence!
References

Note of a interdiciplinarian by Victor E. Bazterra is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.