taocp

This site has no text of the book. Keep your own copy of TAOCP next to it. See what is checked.

Exercise · Volume 1 · 1.2.8-7

Exercise 1.2.8-7

not stated yet in Lean solution written

Rating15
KindK1, prove: show that a stated fact is true from the written solution
SectionSection 1.2.8 of Volume 1. Companion chapter: Fibonacci numbers

The task

Show that FnF_n is composite whenever nn is composite, with one exception, and find the exception.

The exact wording is in your copy of the book.

Hints

Open one hint at a time. Try the exercise again after each.

Hint 1

Show that FaF_a divides FabF_{ab}. Use eq. (6) with mm equal to the first index.

Hint 2

If n=abn = ab with 3≤a<n3 \le a < n, the number FaF_a is a divisor of FnF_n with 1<Fa<Fn1 < F_a < F_n.

Hint 3

A composite nn without a divisor aa with 3≤a<n3 \le a < n has only the divisors 22 and n/2n/2 below nn. What is nn then?

Solution

Show the solution

First, FaF_a divides FkaF_{ka} for all a≥1a \ge 1 and k≥1k \ge 1. This is the case k=1k = 1, and for the step use eq. (6) in the form FN+a=FaFN+1+Fa−1FNF_{N+a} = F_a F_{N+1} + F_{a-1}F_N with N=kaN = ka:

F(k+1)a=FaFka+1+Fa−1Fka.F_{(k+1)a} = F_a F_{ka+1} + F_{a-1} F_{ka}.

By the induction hypothesis Fa∣FkaF_a \mid F_{ka}, so FaF_a divides both terms.

Now let nn be composite. Then n=abn = ab with 2≤a≤b2 \le a \le b. Suppose that b≥3b \ge 3. Then Fb∣FnF_b \mid F_n. Also Fb≥F3=2F_b \ge F_3 = 2, and Fn>FbF_n > F_b because n>b≥3n > b \ge 3 and the Fibonacci numbers increase strictly from F2F_2 on. So FbF_b is a divisor of FnF_n with 1<Fb<Fn1 < F_b < F_n, and FnF_n is composite.

The only composite nn with b≤2b \le 2 is n=4=2⋅2n = 4 = 2 \cdot 2. Here F4=3F_4 = 3 is a prime. For a=2a = 2 the divisor F2=1F_2 = 1 is useless, and that is the reason for the exception.

Answer: if nn is composite and n≠4n \ne 4, then FnF_n is composite. The exception is n=4n = 4, where F4=3F_4 = 3 is prime.

Check

The composite indices up to 1414 give F6=8=2⋅4F_6 = 8 = 2 \cdot 4, F8=21=3⋅7F_8 = 21 = 3 \cdot 7, F9=34=2⋅17F_9 = 34 = 2 \cdot 17, F10=55=5⋅11F_{10} = 55 = 5 \cdot 11, F12=144F_{12} = 144, and F14=377=13⋅29F_{14} = 377 = 13 \cdot 29 is composite as well. The index 44 gives F4=3F_4 = 3, a prime. The converse is false: 1919 is a prime but F19=4181=37⋅113F_{19} = 4181 = 37 \cdot 113.

Remarks

The result is the first step of the study of the divisors of FnF_n. Lucas's theorem, gcd⁡(Fm,Fn)=Fgcd⁡(m,n)\gcd(F_m, F_n) = F_{\gcd(m,n)}, is in the C1 chapter on Section 1.2.8 and goes much further. So if FnF_n is a prime then nn is a prime or n=4n = 4. The converse fails, as the check shows.

This solution is checked, and a person has not reviewed it yet. The source.

In Lean

not stated yet The exercise is not stated in Lean yet.

The status is computed from the Lean build. The node of the map.

Something is wrong? Report it.