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

Exercise 1.2.8-8

not stated yet in Lean solution written

Rating15
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

Extend FnF_n to negative indices by running the rule backwards, and find F−1F_{-1}, F−2F_{-2} and a simple formula for F−nF_{-n} in terms of 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

Write the rule as Fn=Fn+2−Fn+1F_n = F_{n+2} - F_{n+1} and compute F−1,F−2,F−3,…F_{-1}, F_{-2}, F_{-3}, \ldots one by one.

Hint 2

Compare the values with F1,F2,F3,…F_1, F_2, F_3, \ldots and look at the signs.

Hint 3

Prove the pattern by induction on nn with two start values.

Solution

Show the solution

The rule Fn+2=Fn+1+FnF_{n+2} = F_{n+1} + F_n is the same as Fn=Fn+2−Fn+1F_n = F_{n+2} - F_{n+1}. With F0=0F_0 = 0 and F1=1F_1 = 1:

F−1=F1−F0=1,F−2=F0−F−1=−1,F−3=F−1−F−2=2,F−4=F−2−F−3=−3.F_{-1} = F_1 - F_0 = 1, \qquad F_{-2} = F_0 - F_{-1} = -1, \qquad F_{-3} = F_{-1} - F_{-2} = 2, \qquad F_{-4} = F_{-2} - F_{-3} = -3.

The values for n=0,1,…,8n = 0, 1, \ldots, 8 are

nn 0 1 2 3 4 5 6 7 8
FnF_n 0 1 1 2 3 5 8 13 21
F−nF_{-n} 0 1 -1 2 -3 5 -8 13 -21

The absolute values agree, and the sign is ++ for odd nn and −- for even nn.

Claim: F−n=(−1)n+1FnF_{-n} = (-1)^{n+1} F_n for all n≥0n \ge 0. Check n=0n = 0: both sides are 00. Check n=1n = 1: F−1=1=(−1)2F1F_{-1} = 1 = (-1)^2 F_1. Suppose that the claim holds for nn and n+1n + 1. Then

F−(n+2)=F−n−F−(n+1)=(−1)n+1Fn−(−1)n+2Fn+1=(−1)n+1(Fn+Fn+1)=(−1)n+3Fn+2.F_{-(n+2)} = F_{-n} - F_{-(n+1)} = (-1)^{n+1}F_n - (-1)^{n+2}F_{n+1} = (-1)^{n+1}(F_n + F_{n+1}) = (-1)^{n+3}F_{n+2}.

This is the claim for n+2n + 2.

Answer: F−1=1F_{-1} = 1, F−2=−1F_{-2} = -1, and F−n=(−1)n+1FnF_{-n} = (-1)^{n+1}F_n.

Check

The table above is computed with the rule Fn=Fn+2−Fn+1F_n = F_{n+2} - F_{n+1} and the formula agrees with it for n≤8n \le 8. The rule also holds at each place of the table: F−1+F−2=1−1=0=F0F_{-1} + F_{-2} = 1 - 1 = 0 = F_0, and F−2+F−3=−1+2=1=F−1F_{-2} + F_{-3} = -1 + 2 = 1 = F_{-1}.

Remarks

The formula F−n=(−1)n+1FnF_{-n} = (-1)^{n+1}F_n shows that the extension does not give new numbers, only new signs. Exercise 1.2.8-9 tests which identities of the section stay true. See also the C1 chapter on Section 1.2.8.

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.