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

Exercise 1.2.8-10

not stated yet in Lean solution written

Rating15
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 ϕn/5\phi^n/\sqrt5 is greater or less than FnF_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 eq. (14): Fn=(ϕn−ϕ^n)/5F_n = (\phi^n - \hat\phi^n)/\sqrt5.

Hint 2

The sign of the difference is the sign of ϕ^n\hat\phi^n, and ϕ^\hat\phi is negative.

Solution

Show the solution

By eq. 1.2.8(14),

ϕn5−Fn=ϕ^n5.\frac{\phi^n}{\sqrt5} - F_n = \frac{\hat\phi^n}{\sqrt5}.

Since ϕ^=(1−5)/2≈−0.618\hat\phi = (1 - \sqrt5)/2 \approx -0.618 is negative, ϕ^n\hat\phi^n is positive for even nn and negative for odd nn. It is never zero. Hence, for n≥0n \ge 0:

  • if nn is even, then ϕn/5>Fn\phi^n/\sqrt5 > F_n;
  • if nn is odd, then ϕn/5<Fn\phi^n/\sqrt5 < F_n.

This is true for all n≥0n \ge 0 and also, by Exercise 1.2.8-9, for negative nn.

Check

For n=0n = 0: ϕ0/5=0.4472>0=F0\phi^0/\sqrt5 = 0.4472 > 0 = F_0. For n=1n = 1: 0.7236<10.7236 < 1. For n=2n = 2: 1.1708>11.1708 > 1. For n=3n = 3: 1.8944<21.8944 < 2. For n=10n = 10: ϕ10/5=55.0036>55\phi^{10}/\sqrt5 = 55.0036 > 55.

Remarks

The size of the difference is ∣ϕ^∣n/5<1/2|\hat\phi|^n/\sqrt5 < 1/2 for n≥1n \ge 1, which is the reason for the rounding rule in eq. (15). The signs alternate, so the values of ϕn/5\phi^n/\sqrt5 lie above and below the integers FnF_n in turn.

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.