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

Exercise 1.2.8-6

not stated yet in Lean solution written

RatingHM10
MarkersHM (needs higher mathematics)
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 that the nn-th power of the matrix with rows (1,1)(1,1) and (1,0)(1,0) has the Fibonacci numbers as entries.

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

Check n=1n = 1 and n=2n = 2 by hand. Then multiply the formula for nn by the matrix once more.

Hint 2

Use induction on nn. The product of the matrix with entries Fn+1,Fn,Fn,Fn−1F_{n+1}, F_n, F_n, F_{n-1} and the matrix AA gives the entries of the next step by the rule Fn+2=Fn+1+FnF_{n+2} = F_{n+1} + F_n.

Solution

Show the solution

Let AA be the matrix with rows (1,1)(1, 1) and (1,0)(1, 0). The claim is that for n≥1n \ge 1

An=(Fn+1FnFnFn−1).A^n = \begin{pmatrix} F_{n+1} & F_n \\ F_n & F_{n-1} \end{pmatrix}.

For n=1n = 1 the right side is (F2F1F1F0)=(1110)=A\begin{pmatrix} F_2 & F_1 \\ F_1 & F_0 \end{pmatrix} = \begin{pmatrix} 1 & 1 \\ 1 & 0 \end{pmatrix} = A.

Suppose the claim holds for some n≥1n \ge 1. Multiply by AA on the right:

An+1=AnA=(Fn+1FnFnFn−1)(1110)=(Fn+1+FnFn+1Fn+Fn−1Fn)=(Fn+2Fn+1Fn+1Fn).A^{n+1} = A^n A = \begin{pmatrix} F_{n+1} & F_n \\ F_n & F_{n-1} \end{pmatrix}\begin{pmatrix} 1 & 1 \\ 1 & 0 \end{pmatrix} = \begin{pmatrix} F_{n+1} + F_n & F_{n+1} \\ F_n + F_{n-1} & F_n \end{pmatrix} = \begin{pmatrix} F_{n+2} & F_{n+1} \\ F_{n+1} & F_n \end{pmatrix}.

The last step uses Fn+1+Fn=Fn+2F_{n+1} + F_n = F_{n+2} and Fn+Fn−1=Fn+1F_n + F_{n-1} = F_{n+1}. This is the claim for n+1n + 1, so it holds for all n≥1n \ge 1.

Check

For n=5n = 5 the power A5A^5 is (8553)\begin{pmatrix} 8 & 5 \\ 5 & 3 \end{pmatrix}, and F6=8F_6 = 8, F5=5F_5 = 5, F4=3F_4 = 3. The determinant is 8⋅3−5⋅5=−1=(−1)58 \cdot 3 - 5 \cdot 5 = -1 = (-1)^5, as eq. (4) says for n=5n = 5.

Remarks

The determinant of both sides gives Cassini's identity, eq. (4). The rule Am+n=AmAnA^{m+n} = A^m A^n gives the addition formula, eq. (6). Both are in the C1 chapter on Section 1.2.8. With F−1=1F_{-1} = 1 (Exercise 1.2.8-8) the formula is true for n=0n = 0 too, where A0A^0 is the unit matrix.

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.