Section 10.1 Divisibility properties
Theorem 10.1.1.
For \(f_n\) the \(n\)th Fibonacci sequence, we have \(\gcd(f_n, f_{n+1}) = 1\) for all \(n \geq 1.\)
Proof.
For \(n = 1\) and \(n = 2\) we have that \(\gcd(1, 1) = 1\) and \(\gcd(1, 2) =1.\) For \(n\geq 3\) we use the Euclidean algorithm and the definition of the Fibonacci numbers to give
Thus \(\gcd(f_{n+1}, f_n) = f_2 = 1.\)
Note that as an example we can show that \(\gcd(21, 13) = 1.\) We have
We will return to this example when we come to the next chapter on continued fractions.
The above theorem generalizes in the following way.
Theorem 10.1.2.
The greatest common divisor of two Fibonacci numbers is itself a Fibonacci number, and we have that
To prove this theorem we will need first a few of lemmas.
Lemma 10.1.3.
Let \(m\geq 2\) and \(n\geq 1.\) Then we have that
Proof.
We proceed by induction. When \(n = 1\) we have
so the result holds. Suppose that the result holds for all \(n\leq k.\) By the induction hypothesis, we have both
and
Adding these two equations gives
Using the recurrence relation, we have
which is exactly what we wanted to show. Thus by induction the result holds for all \(n,\) and since \(m\) was arbitrary, for all \(m\geq 2\) and \(n\geq 1.\)
Lemma 10.1.4.
For \(m, n\geq 1\) we have that \(f_m\) divides \(f_{mn}.\)
Proof.
Again, we prove this by induction. For \(n = 1\) this holds trivially. So suppose that the result holds for \(n\leq k,\) and note then that \(f_m\vert f_{mk}.\) Using the previous lemma, we have that
Since \(f_m\vert f_m\) and \(f_m\vert f_{mk},\) we have that \(f_m\) divides the linear combination \(f_{mk-1}f_m + f_{mk}f_{m+1}\) which is exactly \(f_m\vert f_{m(k+1)}.\) This proves the lemma.
Lemma 10.1.5.
If \(m = qn + r,\) then \(\gcd(f_m, f_n) = \gcd(f_n, f_r).\)
Proof.
Write \(m = qn + r.\) Then we have by one of the above lemmas that
We recall a fact from the divisibility chapter. Note that if we write \(a = qb+r\) and \(b\vert c\) then we have that \(a + c = q'b + r\) and so
Using this and the fact that \(f_n\vert f_{qn},\) we have
If we can show that \(\gcd(f_{qn-1}, f_n) = 1\) then we would be done.
To this end, set \(d = \gcd(f_{qn-1}, f_n).\) Then since \(d\vert f_n\) and \(f_n\vert f_{qn},\) we have that \(d\vert f_{qn}.\) But we have also that \(d\vert f_{qn-1}\) so that \(\gcd(f_{qn}, f_{qn-1})\geq d.\) Since consecutive Fibonacci numbers are coprime we have that \(d = 1,\) and the desired result follows.
Proof of Theorem 10.1.2.
Without loss of generality assume that \(m\geq n.\) We apply the Euclidean algorithm to give the system
By the previous lemma we have
Because \(r_n\vert r_{n-1},\) we have that \(f_{r_n}\vert f_{r_{n-1}},\) so that \(\gcd(f_{r_{n-1}}, f_{r_n}) = f_{r_n}.\) Since \(r_n = \gcd(m, n),\) we have that \(\gcd(f_m, f_n) = f_{\gcd(m,n)}.\)
As an immediate corollary of this theorem we have
Corollary 10.1.6.
Let \(n\geq m \geq 3.\) We have that \(f_m\vert f_n\) if and only if \(m\vert n.\)