Preliminaries ⎇
The Fibonacci numbers are defined by the recurrence:
A closed form of this formula is given by Binet's formula:
where and
are the roots of the characteristic polynomial
. There are many alternative proofs for this established fact, but the author's favourite concerns generating functions. Suppose that we want to find
such that:
In this scenario, is a generating function for the Fibonacci numbers - in other words, it is a formal power series whose coefficients are the Fibonacci numbers. We rewrite
by definition of Fibonacci numbers and then split the sums:
Now, focusing on the sums we notice that:
Hence we can rewrite as:
From which we can isolate and substitute
. Then, we factor the denominator.
We can expand the geometric series for and
:
By definition of the generating function , the coefficient of
is
. Hence, we have:
Which concludes the proof. A few other facts follow from Binet's formula, for example:
Where denotes the nearest integer to
. This is a useful fact for approximating Fibonacci numbers, and it can be proven by noticing that
for all
. A formula that allows us to determine the largest Fibonacci number less than a given number
is:
Another interesting corollary of Binet's formula states the sufficient and necessary condition for a natural number to be a Fibonacci number: either of or
must be a perfect square.
Divisibility ⎇
It is known that:
Or, written more succinctly as:
Where is the Legendre symbol. We prove this fact by introducing two auxiliary lemmas, the first of which gives
as a sum of binomial coefficients, a result initially stated by Catalan:
Notice how the and
terms can be written as binomial expansions:
Further, if we subtract those expansions, the even terms cancel out, while the odd terms double:
Substituting into the original expression and simplifying, we obtain:
The limits of summation are irrelevant, as the binomial coefficients vanish for . The second lemma is as follows:
Recall the previous result concerning . Fermat's Little Theorem states, given that
is prime and
is an integer not divisible by
, that:
From which we can deduce:
Hence:
However, all are divisible by
, except
. Therefore:
Via Fermat's Little Theorem, we deduce that:
Coming back to the original statement, we begin by proving the edge cases: if , then
. On the other hand, if
, then
. The statement
is trivial, as
. We apply the second lemma to
:
Squaring both sides and applying Fermat's little theorem states that:
Per Cassini's identity - - we can deduce that:
Hence either or
, but not both by definition of Fibonacci numbers. On the other hand, we the following holds due to quadratic reciprocity:
Hence, arguing that:
And the proof of the original statement follows.
Primality tests ⎇
A conjecture due to John Selfridge is that if is an odd number, and
, then
is prime if both
and
hold. A variety of primality tests have been conjectured based on this statement, like the PSW test or the Baillie-PSW test.
Further reading ⎇
- Quadratic reciprocity
- John Selfridge
- The Art of Computer Programming, Volume 1: Fundamental Algorithms by Donald Knuth.
