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

Exercise 1.2.6-19

proved in Lean solution written

RatingM18
MarkersM (mathematical)
KindK1, prove: show that a stated fact is true from the written solution
SectionSection 1.2.6 of Volume 1. Companion chapter: Binomial coefficients

The task

Prove ∑k(rk)(s+kn)(−1)r−k=(sn−r)\sum_k \binom{r}{k}\binom{s+k}{n}(-1)^{r-k} = \binom{s}{n-r} by induction on rr.

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

Let Sr(s,n)S_r(s, n) be the left side. Show that Sr+1(s,n)S_{r+1}(s, n) is a combination of Sr(s,n)S_r(s, n) and Sr(s+1,n)S_r(s+1, n).

Hint 2

Split (r+1k)\binom{r+1}{k} with the addition formula (9).

Solution

Show the solution

Write Sr(s,n)=∑k(rk)(s+kn)(−1)r−kS_r(s, n) = \sum_k \binom{r}{k}\binom{s+k}{n}(-1)^{r-k}. The claim is Sr(s,n)=(sn−r)S_r(s, n) = \binom{s}{n-r} for all real ss and all integers nn, and it is proved by induction on r≥0r \ge 0.

For r=0r = 0 only k=0k = 0 gives a nonzero term, and S0(s,n)=(sn)S_0(s, n) = \binom{s}{n}.

Assume the claim for rr (for all ss and nn). By the addition formula (9), (r+1k)=(rk)+(rk−1)\binom{r+1}{k} = \binom{r}{k} + \binom{r}{k-1}, so Sr+1(s,n)=∑k(rk)(s+kn)(−1)r+1−k+∑k(rk−1)(s+kn)(−1)r+1−k.S_{r+1}(s, n) = \sum_k \binom{r}{k}\binom{s+k}{n}(-1)^{r+1-k} + \sum_k \binom{r}{k-1}\binom{s+k}{n}(-1)^{r+1-k}. The first sum is −Sr(s,n)-S_r(s, n). In the second sum put k=k′+1k = k' + 1. The sign becomes (−1)r−k′(-1)^{r-k'} and the lower factor becomes (s+1+k′n)\binom{s+1+k'}{n}. So the second sum is Sr(s+1,n)S_r(s+1, n). Then by the hypothesis and by eq. 1.2.6(9), Sr+1(s,n)=(s+1n−r)−(sn−r)=(sn−r−1)=(sn−(r+1)).S_{r+1}(s, n) = \binom{s+1}{n-r} - \binom{s}{n-r} = \binom{s}{n-r-1} = \binom{s}{n-(r+1)}. This is the claim for r+1r + 1.

Check

Take r=2r = 2, s=1s = 1, n=2n = 2. The terms are k=0k = 0: (20)(12)(+1)=0\binom{2}{0}\binom{1}{2}(+1) = 0; k=1k = 1: (21)(22)(−1)=−2\binom{2}{1}\binom{2}{2}(-1) = -2; k=2k = 2: (22)(32)(+1)=3\binom{2}{2}\binom{3}{2}(+1) = 3. The sum is 11, and (10)=1\binom{1}{0} = 1.

Remarks

The case s=0s = 0 is the inversion formula (33) of the section. The proof shows why the identity holds for real ss: the induction needs only the addition formula and no integer condition on ss.

This solution is drafted, and a person has not reviewed it yet. The source.

In Lean

proved The statement and its proof are in Lean. The kernel accepts the proof, and it uses the standard axioms only.

The status is computed from the Lean build. The node of the map.

Something is wrong? Report it.