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

Exercise 1.2.8-31

not stated yet in Lean solution written

RatingM20
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

Show that F2nϕ mod 1=1−ϕ−2nF_{2n}\phi \bmod 1 = 1 - \phi^{-2n} for n≥1n \ge 1 and F2n+1ϕ mod 1=ϕ−2n−1F_{2n+1}\phi \bmod 1 = \phi^{-2n-1} for n≥0n \ge 0.

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

Start from Exercise 1.2.8-28 and write FNϕF_N\phi as an integer plus a power of ϕ^\hat\phi.

Hint 2

The sign of ϕ^N\hat\phi^N depends on the parity of NN.

Solution

Show the solution

By Exercise 1.2.8-28, ϕFN=FN+1−ϕ^N\phi F_N = F_{N+1} - \hat\phi^N. Also ϕ^=−ϕ−1\hat\phi = -\phi^{-1}, so ϕ^N=(−1)Nϕ−N\hat\phi^N = (-1)^N\phi^{-N}, and 0<ϕ−N<10 < \phi^{-N} < 1 for N≥1N \ge 1.

Even index. For N=2n≥2N = 2n \ge 2: ϕF2n=F2n+1−ϕ−2n\phi F_{2n} = F_{2n+1} - \phi^{-2n}. So ϕF2n=(F2n+1−1)+(1−ϕ−2n)\phi F_{2n} = (F_{2n+1} - 1) + (1 - \phi^{-2n}), with F2n+1−1F_{2n+1} - 1 an integer and 0<1−ϕ−2n<10 < 1 - \phi^{-2n} < 1. Hence F2nϕ mod 1=1−ϕ−2nF_{2n}\phi \bmod 1 = 1 - \phi^{-2n}.

Odd index. For N=2n+1N = 2n + 1: ϕF2n+1=F2n+2+ϕ−2n−1\phi F_{2n+1} = F_{2n+2} + \phi^{-2n-1} with 0<ϕ−2n−1<10 < \phi^{-2n-1} < 1. Hence F2n+1ϕ mod 1=ϕ−2n−1F_{2n+1}\phi \bmod 1 = \phi^{-2n-1}. This holds for n=0n = 0 too, where it reads ϕ mod 1=ϕ−1\phi \bmod 1 = \phi^{-1}.

Check

For n=2n = 2: F4ϕ=3ϕ=4.854102F_4\phi = 3\phi = 4.854102, with fraction 0.8541020.854102, and 1−ϕ−4=1−0.145898=0.8541021 - \phi^{-4} = 1 - 0.145898 = 0.854102. For n=2n = 2 and odd index: F5ϕ=5ϕ=8.090170F_5\phi = 5\phi = 8.090170, fraction 0.0901700.090170, and ϕ−5=0.090170\phi^{-5} = 0.090170. For n=0n = 0 the even formula would read 0=1−10 = 1 - 1, which is the fraction of F0ϕ=0F_0\phi = 0.

Remarks

So the points Fnϕ mod 1F_n\phi \bmod 1 lie alternately just below and just above integers, and they approach 00 from the side given by the parity of nn.

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.