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

Exercise 1.2.6-53

stated in Lean solution written

RatingM25
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 the partial sum of (rk)(sn−k)(nr−(r+s)k)\binom{r}{k}\binom{s}{n-k}\bigl(nr - (r+s)k\bigr) by induction on mm. Then use it for r=1/2r = 1/2 and s=−1/2s = -1/2 to find a partial sum of (2k−1k)(2n−2kn−k)−12k−1\binom{2k-1}{k}\binom{2n-2k}{n-k}\frac{-1}{2k-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

For (a) show that both sides increase by the same amount when mm goes to m+1m + 1. Use k(sk)=(s−k+1)(sk−1)k\binom{s}{k} = (s-k+1)\binom{s}{k-1}.

Hint 2

For (b) express (1/2k)\binom{1/2}{k} and (−1/2j)\binom{-1/2}{j} by central binomial coefficients, as in Exercise 1.2.6-47.

Hint 3

Treat the term k=0k = 0 of the sum in (b) apart.

Solution

Show the solution

(a) Let SmS_m be the left side and Rm=(m+1)(n−m)(rm+1)(sn−m)R_m = (m+1)(n-m)\binom{r}{m+1}\binom{s}{n-m} the right side.

For m=0m = 0: S0=(sn) nrS_0 = \binom{s}{n}\,nr, and R0=n(r1)(sn)=nr(sn)R_0 = n\binom{r}{1}\binom{s}{n} = nr\binom{s}{n}.

Assume Sm=RmS_m = R_m. Then Sm+1−Sm=(rm+1)(sn−m−1)(nr−(r+s)(m+1))S_{m+1} - S_m = \binom{r}{m+1}\binom{s}{n-m-1}\bigl(nr - (r+s)(m+1)\bigr). It is enough to show that Rm+1−RmR_{m+1} - R_m is the same. Two forms of eq. 1.2.6(7) are used, both valid for all integers: (m+2)(rm+2)=(r−m−1)(rm+1)(m+2)\binom{r}{m+2} = (r-m-1)\binom{r}{m+1} and (n−m)(sn−m)=(s−n+m+1)(sn−m−1)(n-m)\binom{s}{n-m} = (s-n+m+1)\binom{s}{n-m-1}. They give Rm+1=(n−m−1)(r−m−1)(rm+1)(sn−m−1),Rm=(m+1)(s−n+m+1)(rm+1)(sn−m−1).R_{m+1} = (n-m-1)(r-m-1)\binom{r}{m+1}\binom{s}{n-m-1},\qquad R_m = (m+1)(s-n+m+1)\binom{r}{m+1}\binom{s}{n-m-1}. So Rm+1−Rm=(rm+1)(sn−m−1) QR_{m+1} - R_m = \binom{r}{m+1}\binom{s}{n-m-1}\,Q with Q=(n−m−1)(r−m−1)−(m+1)(s−n+m+1)=nr−n(m+1)−(m+1)r+(m+1)2−(m+1)s+(m+1)n−(m+1)2,Q = (n-m-1)(r-m-1) - (m+1)(s-n+m+1) = nr - n(m+1) - (m+1)r + (m+1)^2 - (m+1)s + (m+1)n - (m+1)^2, which is nr−(m+1)(r+s)nr - (m+1)(r+s). This is the factor needed.

(b) Three facts for k≥0k \ge 0. First, (−1/2j)=(−1/4)j(2jj)\binom{-1/2}{j} = (-1/4)^j\binom{2j}{j} for j≥0j \ge 0 (Exercise 1.2.6-47), and (−1/2j)=0\binom{-1/2}{j} = 0 for j<0j < 0. Second, (1/2k)=(−14)k−12k−1(2kk)\binom{1/2}{k} = \bigl(-\tfrac14\bigr)^k\frac{-1}{2k-1}\binom{2k}{k}. To see it, take k≥1k \ge 1 and use eq. 1.2.6(7): (1/2k)=12k(−1/2k−1)=12k(−14)k−1(2k−2k−1)\binom{1/2}{k} = \frac{1}{2k}\binom{-1/2}{k-1} = \frac{1}{2k}(-\tfrac14)^{k-1}\binom{2k-2}{k-1}, and (2kk)=2(2k−1)k(2k−2k−1)\binom{2k}{k} = \frac{2(2k-1)}{k}\binom{2k-2}{k-1}. For k=0k = 0 both sides are 11. Third, (2k−1k)=12(2kk)\binom{2k-1}{k} = \frac12\binom{2k}{k} for k≥1k \ge 1, since (2kk)=(2k−1k)+(2k−1k−1)\binom{2k}{k} = \binom{2k-1}{k} + \binom{2k-1}{k-1} and the two terms are equal.

Take (a) with r=1/2r = 1/2, s=−1/2s = -1/2. Then nr−(r+s)k=n/2nr - (r+s)k = n/2, and the left side is n2(−14)n∑k=0m−12k−1(2kk)(2n−2kn−k).\frac n2\Bigl(-\frac14\Bigr)^n\sum_{k=0}^m\frac{-1}{2k-1}\binom{2k}{k}\binom{2n-2k}{n-k}. For the right side use (m+1)(1/2m+1)=12(−14)m(2mm)(m+1)\binom{1/2}{m+1} = \frac12\bigl(-\frac14\bigr)^m\binom{2m}{m}, which follows from the second fact and (m+1)(2m+2m+1)=2(2m+1)(2mm)(m+1)\binom{2m+2}{m+1} = 2(2m+1)\binom{2m}{m}. The right side is n−m2(−14)n(2mm)(2n−2mn−m).\frac{n-m}{2}\Bigl(-\frac14\Bigr)^n\binom{2m}{m}\binom{2n-2m}{n-m}. Divide by n2(−14)n\frac n2(-\frac14)^n. With T=∑k=0m−12k−1(2kk)(2n−2kn−k)T = \sum_{k=0}^m\frac{-1}{2k-1}\binom{2k}{k}\binom{2n-2k}{n-k} we get T=n−mn(2mm)(2n−2mn−m).T = \frac{n-m}{n}\binom{2m}{m}\binom{2n-2m}{n-m}. Now split the sum of (b). The term k=0k = 0 is (−10)(2nn)⋅1=(2nn)\binom{-1}{0}\binom{2n}{n}\cdot 1 = \binom{2n}{n}, and it is the same as the term of TT for k=0k = 0. For k≥1k \ge 1 the third fact gives half the term of TT. So the sum of (b) is (2nn)+12(T−(2nn))=12(2nn)+12T\binom{2n}{n} + \frac12\bigl(T - \binom{2n}{n}\bigr) = \frac12\binom{2n}{n} + \frac12T, which is the claimed value. For m>nm > n all terms with k>nk > n and the right side vanish, and the argument is unchanged.

Check

For (a) take r=2r = 2, s=3s = 3, n=3n = 3, m=1m = 1. The left side is (33)⋅6+2(32)(6−5)=6+6=12\binom{3}{3}\cdot 6 + 2\binom{3}{2}(6-5) = 6 + 6 = 12, and the right side is 2⋅2(22)(32)=122\cdot 2\binom{2}{2}\binom{3}{2} = 12. For (b) take n=2n = 2, m=1m = 1. The left side is (42)⋅1+(11)(21)(−1)=6−2=4\binom{4}{2}\cdot 1 + \binom{1}{1}\binom{2}{1}(-1) = 6 - 2 = 4, and the right side is 14⋅2⋅2+12⋅6=4\frac14\cdot 2\cdot 2 + \frac12\cdot 6 = 4.

Remarks

For m=nm = n part (b) gives ∑k=0n(2k−1k)(2n−2kn−k)−12k−1=12(2nn)\sum_{k=0}^{n}\binom{2k-1}{k}\binom{2n-2k}{n-k}\frac{-1}{2k-1} = \frac12\binom{2n}{n}. The numbers (2kk)−12k−1\binom{2k}{k}\frac{-1}{2k-1} are 2(1/2k)(−4)k2\binom{1/2}{k}(-4)^k, close to the Catalan numbers.

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. Lean states the parts one by one.

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

Something is wrong? Report it.