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

Exercise 1.2.8-17

not stated yet in Lean solution written

RatingM24
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

Prove Fn+kFm−k−FnFm=(−1)nFm−n−kFkF_{n+k}F_{m-k} - F_nF_m = (-1)^nF_{m-n-k}F_k for all integers n,m,kn, m, k, where FnF_n is extended to negative nn as in Exercise 1.2.8-8.

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 each product with the Binet formula and use ϕϕ^=−1\phi\hat\phi = -1.

Hint 2

Put Ln=ϕn+ϕ^nL_n = \phi^n + \hat\phi^n. Show FaFb=(La+b−(−1)bLa−b)/5F_aF_b = (L_{a+b} - (-1)^bL_{a-b})/5, and note L−j=(−1)jLjL_{-j} = (-1)^jL_j.

Solution

Show the solution

Let Lj=ϕj+ϕ^jL_j = \phi^j + \hat\phi^j for every integer jj. Since ϕϕ^=−1\phi\hat\phi = -1, it follows that ϕ^=−1/ϕ\hat\phi = -1/\phi, so ϕ^−j=(−1)jϕj\hat\phi^{-j} = (-1)^j\phi^j and ϕ−j=(−1)jϕ^j\phi^{-j} = (-1)^j\hat\phi^j. Hence L−j=(−1)jLjL_{-j} = (-1)^jL_j. By Exercise 1.2.8-9 the Binet formula Fj=(ϕj−ϕ^j)/5F_j = (\phi^j - \hat\phi^j)/\sqrt5 holds for all integers jj.

Multiply two Binet formulas:

5FaFb=ϕa+b+ϕ^a+b−ϕaϕ^b−ϕ^aϕb.5F_aF_b = \phi^{a+b} + \hat\phi^{a+b} - \phi^a\hat\phi^b - \hat\phi^a\phi^b.

Now ϕaϕ^b=(ϕϕ^)bϕa−b=(−1)bϕa−b\phi^a\hat\phi^b = (\phi\hat\phi)^b\phi^{a-b} = (-1)^b\phi^{a-b} and ϕ^aϕb=(−1)bϕ^a−b\hat\phi^a\phi^b = (-1)^b\hat\phi^{a-b}. So

5FaFb=La+b−(−1)bLa−b.5F_aF_b = L_{a+b} - (-1)^bL_{a-b}.

Left side. Both products have a+b=n+ma + b = n + m, so the terms Ln+mL_{n+m} cancel in the difference:

5(Fn+kFm−k−FnFm)=−(−1)m−kLn+2k−m+(−1)mLn−m.5(F_{n+k}F_{m-k} - F_nF_m) = -(-1)^{m-k}L_{n+2k-m} + (-1)^mL_{n-m}.

Right side. With a=m−n−ka = m - n - k and b=kb = k, the sums are a+b=m−na + b = m - n and a−b=m−n−2ka - b = m - n - 2k:

5(−1)nFm−n−kFk=(−1)nLm−n−(−1)n+kLm−n−2k.5(-1)^nF_{m-n-k}F_k = (-1)^nL_{m-n} - (-1)^{n+k}L_{m-n-2k}.

Use Lm−n=(−1)m−nLn−mL_{m-n} = (-1)^{m-n}L_{n-m}. Then (−1)nLm−n=(−1)mLn−m(-1)^nL_{m-n} = (-1)^mL_{n-m}. Use Lm−n−2k=(−1)m−nLn+2k−mL_{m-n-2k} = (-1)^{m-n}L_{n+2k-m}. Then (−1)n+kLm−n−2k=(−1)m+kLn+2k−m=(−1)m−kLn+2k−m(-1)^{n+k}L_{m-n-2k} = (-1)^{m+k}L_{n+2k-m} = (-1)^{m-k}L_{n+2k-m}. So the two sides are equal.

Check

Take n=2n = 2, k=3k = 3, m=7m = 7: F5F4−F2F7=15−13=2F_5F_4 - F_2F_7 = 15 - 13 = 2 and (−1)2F2F3=2(-1)^2F_2F_3 = 2. Take n=3n = 3, k=2k = 2, m=1m = 1 (negative index): F5F−1−F3F1=5−2=3F_5F_{-1} - F_3F_1 = 5 - 2 = 3 and (−1)3F−4F2=−(−3)(1)=3(-1)^3F_{-4}F_2 = -(-3)(1) = 3. A python search over −12≤n,m,k≤12-12 \le n, m, k \le 12 finds no counterexample.

Remarks

Put k=1k = 1 and m=nm = n. Then F−1=F1=1F_{-1} = F_1 = 1 gives Cassini's identity Fn+1Fn−1−Fn2=(−1)nF_{n+1}F_{n-1} - F_n^2 = (-1)^n, which is eq. (4) of the section.

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.