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

Exercise 1.2.8-16

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 ∑k≥0(n−kk)\sum_{k \ge 0}\binom{n-k}{k}, a sum along a shallow diagonal of Pascal's triangle, equals Fn+1F_{n+1}.

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

Call the sum SnS_n. Find the start values and a recurrence for SnS_n.

Hint 2

Split (n+2−kk)\binom{n+2-k}{k} with Pascal's rule and shift the index in one of the two sums.

Solution

Show the solution

Let Sn=∑k≥0(n−kk)S_n = \sum_{k \ge 0}\binom{n-k}{k}. Only the terms with 0≤k≤n/20 \le k \le n/2 are nonzero, because (ak)=0\binom{a}{k} = 0 for 0≤a<k0 \le a < k. So S0=(00)=1S_0 = \binom00 = 1 and S1=(10)=1S_1 = \binom10 = 1.

For n≥0n \ge 0 use (n+2−kk)=(n+1−kk)+(n+1−kk−1)\binom{n+2-k}{k} = \binom{n+1-k}{k} + \binom{n+1-k}{k-1} for 0≤k≤(n+2)/20 \le k \le (n+2)/2, where all top entries are nonnegative. Summing over kk gives

Sn+2=∑k(n+1−kk)+∑k≥1(n+1−kk−1).S_{n+2} = \sum_{k}\binom{n+1-k}{k} + \sum_{k \ge 1}\binom{n+1-k}{k-1}.

The first sum is Sn+1S_{n+1}. In the second put j=k−1j = k - 1. It becomes ∑j≥0(n−jj)=Sn\sum_{j \ge 0}\binom{n-j}{j} = S_n. So Sn+2=Sn+1+SnS_{n+2} = S_{n+1} + S_n.

The sequence SnS_n has S0=S1=1S_0 = S_1 = 1 and the Fibonacci rule. The sequence Fn+1F_{n+1} has the same start values and the same rule. Hence Sn=Fn+1S_n = F_{n+1} for all n≥0n \ge 0.

Check

For n=6n = 6: (60)+(51)+(42)+(33)=1+5+6+1=13=F7\binom60 + \binom51 + \binom42 + \binom33 = 1 + 5 + 6 + 1 = 13 = F_7. For n=0,…,8n = 0, \ldots, 8 the sums are 1,1,2,3,5,8,13,21,341, 1, 2, 3, 5, 8, 13, 21, 34, which are F1,…,F9F_1, \ldots, F_9.

Remarks

The shallow diagonals of Pascal's triangle give Fibonacci numbers, and the rows give powers of 2. The C1 chapter on binomial coefficients has the Pascal rule used here.

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.