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

Exercise 1.2.8-28

not stated yet in Lean solution written

RatingM21
MarkersM (mathematical)
KindK3, find a value: compute a number, a set or a closed form from the written solution
SectionSection 1.2.8 of Volume 1. Companion chapter: Fibonacci numbers

The task

Find a closed form of Fn+1−ϕFnF_{n+1} - \phi F_n.

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

Use the Binet formula for both numbers.

Hint 2

The terms in ϕn+1\phi^{n+1} cancel.

Solution

Show the solution

With Fn=(ϕn−ϕ^n)/5F_n = (\phi^n - \hat\phi^n)/\sqrt5,

Fn+1−ϕFn=ϕn+1−ϕ^n+1−ϕn+1+ϕϕ^n5=ϕ^n(ϕ−ϕ^)5=ϕ^n,F_{n+1} - \phi F_n = \frac{\phi^{n+1} - \hat\phi^{n+1} - \phi^{n+1} + \phi\hat\phi^n}{\sqrt5} = \frac{\hat\phi^n(\phi - \hat\phi)}{\sqrt5} = \hat\phi^n,

because ϕ−ϕ^=5\phi - \hat\phi = \sqrt5. So

Fn+1−ϕFn=ϕ^n.F_{n+1} - \phi F_n = \hat\phi^n.

Check

For n=3n = 3: F4−ϕF3=3−2ϕ=3−3.236068=−0.236068F_4 - \phi F_3 = 3 - 2\phi = 3 - 3.236068 = -0.236068, and ϕ^3=(−0.618034)3=−0.236068\hat\phi^3 = (-0.618034)^3 = -0.236068. For n=4n = 4: 5−3ϕ=0.145898=ϕ^45 - 3\phi = 0.145898 = \hat\phi^4.

Remarks

Since ∣ϕ^∣<1|\hat\phi| < 1, the number FnϕF_n\phi is close to the integer Fn+1F_{n+1}, with error ∣ϕ^∣n|\hat\phi|^n. Exercise 1.2.8-31 uses this to find Fnϕ mod 1F_n\phi \bmod 1. The same method gives Fn+1−ϕ^Fn=ϕnF_{n+1} - \hat\phi F_n = \phi^n.

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.