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

Exercise 1.2.8-25

not stated yet in Lean solution written

RatingM21
MarkersM (mathematical)
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

Prove 2nFn=2∑k odd(nk)5(k−1)/22^nF_n = 2\sum_{k\ \mathrm{odd}}\binom nk5^{(k-1)/2}.

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

Write 2nFn2^nF_n with the Binet formula, so that the numbers 1±51 \pm \sqrt5 appear.

Hint 2

Expand both powers with the binomial theorem. The terms with even kk cancel.

Solution

Show the solution

Since 2ϕ=1+52\phi = 1 + \sqrt5 and 2ϕ^=1−52\hat\phi = 1 - \sqrt5, the Binet formula gives

2nFn=(1+5)n−(1−5)n5.2^nF_n = \frac{(1 + \sqrt5)^n - (1 - \sqrt5)^n}{\sqrt5}.

Expand both powers: (1±5)n=∑k(nk)(±5)k(1 \pm \sqrt5)^n = \sum_k\binom nk(\pm\sqrt5)^k. In the difference the terms with even kk cancel, and the terms with odd kk are equal and add up:

(1+5)n−(1−5)n=2∑k odd(nk)(5)k.(1 + \sqrt5)^n - (1 - \sqrt5)^n = 2\sum_{k\ \mathrm{odd}}\binom nk(\sqrt5)^k.

For odd kk, (5)k/5=5(k−1)/2(\sqrt5)^k/\sqrt5 = 5^{(k-1)/2}. Hence 2nFn=2∑k odd(nk)5(k−1)/22^nF_n = 2\sum_{k\ \mathrm{odd}}\binom nk5^{(k-1)/2}.

Check

For n=6n = 6: 26F6=64⋅8=5122^6F_6 = 64 \cdot 8 = 512, and 2((61)+(63)⋅5+(65)⋅25)=2(6+100+150)=5122(\binom61 + \binom63\cdot5 + \binom65\cdot25) = 2(6 + 100 + 150) = 512.

Remarks

Exercise 1.2.8-26 uses this formula to find FpF_p modulo a prime pp. The even-index analogue is 2nLn=2∑k even(nk)5k/22^nL_n = 2\sum_{k\ \mathrm{even}}\binom nk5^{k/2} for the Lucas numbers.

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.