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

Exercise 1.2.6-63

stated in Lean solution written

RatingM30
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 ∑j,k(−1)j+k(j+kk+l)(rj)(nk)(s+n−j−km−j)=(−1)l(n+rn+l)(s−rm−n−l)\sum_{j,k}(-1)^{j+k}\binom{j+k}{k+l}\binom{r}{j}\binom{n}{k}\binom{s+n-j-k}{m-j} = (-1)^l\binom{n+r}{n+l}\binom{s-r}{m-n-l}.

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

Induct on nn. Split (nk)\binom{n}{k} with eq. 1.2.6(9).

Hint 2

Then split (j+k+1k+l+1)\binom{j+k+1}{k+l+1} in the same way, so that the form of the sum is kept, with other ll and ss.

Hint 3

Prove the case n=0n = 0 with eq. 1.2.6(20), (17) and (21).

Solution

Show the solution

Plan: write Ln(l,m;s)L_n(l,m;s) for the left side and Rn(l,m;s)R_n(l,m;s) for the right side. Prove L0=R0L_0 = R_0, and show that both satisfy the same recurrence in nn. Fix rr. All statements are for all integers ll, mm and all real ss.

Only finitely many terms are nonzero: (nk)\binom{n}{k} needs 0≤k≤n0 \le k \le n, (rj)\binom{r}{j} is zero for j<0j < 0, and (s+n−j−km−j)\binom{s+n-j-k}{m-j} is zero for j>mj > m.

The case n=0n = 0. Only k=0k = 0 remains, and L0=∑j(−1)j(jl)(rj)(s−jm−j)L_0 = \sum_j(-1)^j\binom{j}{l}\binom{r}{j}\binom{s-j}{m-j}. By eq. 1.2.6(20), (rj)(jl)=(rl)(r−lj−l)\binom{r}{j}\binom{j}{l} = \binom{r}{l}\binom{r-l}{j-l}. By eq. 1.2.6(17), (s−jm−j)=(−1)m−j(m−s−1m−j)\binom{s-j}{m-j} = (-1)^{m-j}\binom{m-s-1}{m-j}. So L0=(−1)m(rl)∑j(r−lj−l)(m−s−1m−j)=(−1)m(rl)(r−l+m−s−1m−l),L_0 = (-1)^m\binom{r}{l}\sum_j\binom{r-l}{j-l}\binom{m-s-1}{m-j} = (-1)^m\binom{r}{l}\binom{r-l+m-s-1}{m-l}, by Vandermonde's convolution (21), with the index j−lj - l. Also by (17), (s−rm−l)=(−1)m−l(m−l−s+r−1m−l)\binom{s-r}{m-l} = (-1)^{m-l}\binom{m-l-s+r-1}{m-l}, so R0=(−1)l(rl)(s−rm−l)=(−1)m(rl)(r−l+m−s−1m−l)=L0R_0 = (-1)^l\binom{r}{l}\binom{s-r}{m-l} = (-1)^m\binom{r}{l}\binom{r-l+m-s-1}{m-l} = L_0.

Recurrence for LL. Let n≥1n \ge 1 and use (nk)=(n−1k)+(n−1k−1)\binom{n}{k} = \binom{n-1}{k} + \binom{n-1}{k-1}. The part with (n−1k)\binom{n-1}{k} has (s+n−j−km−j)=((s+1)+(n−1)−j−km−j)\binom{s+n-j-k}{m-j} = \binom{(s+1)+(n-1)-j-k}{m-j}, so it is Ln−1(l,m;s+1)L_{n-1}(l,m;s+1). In the part with (n−1k−1)\binom{n-1}{k-1} put k=k′+1k = k'+1. The sign becomes −(−1)j+k′-(-1)^{j+k'}, the upper index s+n−j−ks+n-j-k becomes s+(n−1)−j−k′s+(n-1)-j-k', and (j+k′+1k′+l+1)=(j+k′k′+l)+(j+k′k′+l+1)\binom{j+k'+1}{k'+l+1} = \binom{j+k'}{k'+l} + \binom{j+k'}{k'+l+1}. So this part is −Ln−1(l,m;s)−Ln−1(l+1,m;s)-L_{n-1}(l,m;s) - L_{n-1}(l+1,m;s). Hence Ln(l,m;s)=Ln−1(l,m;s+1)−Ln−1(l,m;s)−Ln−1(l+1,m;s).L_n(l,m;s) = L_{n-1}(l,m;s+1) - L_{n-1}(l,m;s) - L_{n-1}(l+1,m;s).

Recurrence for RR. With Rn−1(l,m;s)=(−1)l(n−1+rn−1+l)(s−rm−n+1−l)R_{n-1}(l,m;s) = (-1)^l\binom{n-1+r}{n-1+l}\binom{s-r}{m-n+1-l} we find, by eq. 1.2.6(9) in the lower index m−n+1−lm - n + 1 - l for the first two terms, Rn−1(l,m;s+1)−Rn−1(l,m;s)=(−1)l(n−1+rn−1+l)(s−rm−n−l),R_{n-1}(l,m;s+1) - R_{n-1}(l,m;s) = (-1)^l\tbinom{n-1+r}{n-1+l}\tbinom{s-r}{m-n-l}, −Rn−1(l+1,m;s)=(−1)l(n−1+rn+l)(s−rm−n−l).-R_{n-1}(l+1,m;s) = (-1)^l\tbinom{n-1+r}{n+l}\tbinom{s-r}{m-n-l}. The sum is (−1)l(s−rm−n−l)[(n−1+rn−1+l)+(n−1+rn+l)]=(−1)l(s−rm−n−l)(n+rn+l)=Rn(l,m;s)(-1)^l\binom{s-r}{m-n-l}\bigl[\binom{n-1+r}{n-1+l} + \binom{n-1+r}{n+l}\bigr] = (-1)^l\binom{s-r}{m-n-l}\binom{n+r}{n+l} = R_n(l,m;s) by (9) again.

Both sides have the same start and the same recurrence, so Ln=RnL_n = R_n for all nn.

Check

For l=1l = 1, m=3m = 3, n=2n = 2, r=1/2r = 1/2, s=2/3s = 2/3 both sides equal −5/16-5/16 (exact fractions, computed by program). For l=2l = 2, m=5m = 5, n=2n = 2, r=1/3r = 1/3, s=7/2s = 7/2 both sides equal −133/1458-133/1458. For l=−1l = -1 both sides are 00 in a test with r=2r = 2, s=3s = 3.

Remarks

The book's answer points to a published treatment of this identity and uses another route. For n=0n = 0 the identity is Vandermonde's convolution in disguise. The same induction proves other identities of this family, with the roles of the lower and upper index exchanged.

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

In Lean

stated The statement is in Lean and it builds. The proof is not in Lean yet.

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

Something is wrong? Report it.