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-18

Exercise 1.2.8-18

not stated yet in Lean solution written

Rating20
KindK2, decide: say whether a claim holds from the written solution
SectionSection 1.2.8 of Volume 1. Companion chapter: Fibonacci numbers

The task

Decide whether Fn2+Fn+12F_n^2 + F_{n+1}^2 is always a Fibonacci number.

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

Look at eq. (6), the addition rule for Fm+nF_{m+n}.

Hint 2

Choose mm and nn in eq. (6) so that both sides contain squares.

Solution

Show the solution

Yes. Eq. (6) of the section reads Fm+n=FmFn+1+Fm−1FnF_{m+n} = F_mF_{n+1} + F_{m-1}F_n. Put m=n+1m = n + 1:

F2n+1=Fn+1Fn+1+FnFn=Fn2+Fn+12.F_{2n+1} = F_{n+1}F_{n+1} + F_nF_n = F_n^2 + F_{n+1}^2.

So the sum of two consecutive squares of Fibonacci numbers is the Fibonacci number with odd index 2n+12n+1.

Check

For n=4n = 4: F42+F52=9+25=34=F9F_4^2 + F_5^2 = 9 + 25 = 34 = F_9. For n=0,…,6n = 0, \ldots, 6 the sums are 1,2,5,13,34,89,2331, 2, 5, 13, 34, 89, 233, and these are F1,F3,F5,F7,F9,F11,F13F_1, F_3, F_5, F_7, F_9, F_{11}, F_{13}.

Remarks

Eq. (6) also gives F2n=Fn(Fn+1+Fn−1)F_{2n} = F_n(F_{n+1} + F_{n-1}) with m=nm = n. This is the first step to the Lucas numbers Ln=Fn+1+Fn−1L_n = F_{n+1} + F_{n-1}.

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.