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

Exercise 1.2.6-61

stated in Lean solution written

RatingM25
MarkersM (mathematical)
KindK3, find a value: compute a number, a set or a closed form from the written solution
SectionSection 1.2.6 of Volume 1. Companion chapter: Binomial coefficients

The task

Find ∑k[n+1k+1]{km}(−1)k−m\sum_k\left[{n+1 \atop k+1}\right]\left\{{k \atop m}\right\}(-1)^{k-m}.

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

Find a generating polynomial for [n+1k+1]\left[{n+1 \atop k+1}\right] from the rising power (Exercise 1.2.6-32).

Hint 2

Put −x-x for xx, and expand xkx^k in falling powers with eq. 1.2.6(45).

Hint 3

Use the falling-power binomial formula of Exercise 1.2.6-33 with y=−1y = -1.

Solution

Show the solution

By Exercise 1.2.6-32, ∑j[n+1j]xj=xn+1‾=x (x+1)n‾\sum_j\left[{n+1 \atop j}\right]x^j = x^{\overline{n+1}} = x\,(x+1)^{\overline{n}}, so ∑k[n+1k+1]xk=(x+1)(x+2)⋯(x+n)\sum_k\left[{n+1 \atop k+1}\right]x^k = (x+1)(x+2)\cdots(x+n). Replace xx by −x-x: ∑k[n+1k+1](−1)kxk=(1−x)(2−x)⋯(n−x)=(−1)n(x−1)n‾.\sum_k\left[{n+1 \atop k+1}\right](-1)^kx^k = (1-x)(2-x)\cdots(n-x) = (-1)^n(x-1)^{\underline{n}}. Expand xk=∑m{km}xm‾x^k = \sum_m\left\{{k \atop m}\right\}x^{\underline{m}} on the left. The coefficient of xm‾x^{\underline{m}} on the left is ∑k[n+1k+1]{km}(−1)k\sum_k\left[{n+1 \atop k+1}\right]\left\{{k \atop m}\right\}(-1)^k. The falling powers are a basis of the polynomials, so this equals the coefficient of xm‾x^{\underline{m}} on the right.

By Exercise 1.2.6-33, (x−1)n‾=∑m(nm)xm‾(−1)n−m‾(x-1)^{\underline{n}} = \sum_m\binom{n}{m}x^{\underline{m}}(-1)^{\underline{n-m}}, and (−1)j‾=(−1)(−2)⋯(−j)=(−1)jj!(-1)^{\underline{j}} = (-1)(-2)\cdots(-j) = (-1)^jj!. So the coefficient of xm‾x^{\underline{m}} in (x−1)n‾(x-1)^{\underline{n}} is (−1)n−m(nm)(n−m)!=(−1)n−mn!/m!(-1)^{n-m}\binom{n}{m}(n-m)! = (-1)^{n-m}n!/m!, and it is 00 for m>nm > n. Therefore ∑k[n+1k+1]{km}(−1)k=(−1)n(−1)n−mn!m!=(−1)mn!m!.\sum_k\left[{n+1 \atop k+1}\right]\left\{{k \atop m}\right\}(-1)^k = (-1)^n(-1)^{n-m}\frac{n!}{m!} = (-1)^m\frac{n!}{m!}. Multiply by (−1)m(-1)^m: the sum with (−1)k−m(-1)^{k-m} is n!/m!n!/m! for m≤nm \le n and 00 for m>nm > n.

Check

For n=2n = 2, m=1m = 1: the terms k=1,2k = 1, 2 are [32]{11}(+1)=3\left[{3 \atop 2}\right]\left\{{1 \atop 1}\right\}(+1) = 3 and [33]{21}(−1)=−1\left[{3 \atop 3}\right]\left\{{2 \atop 1}\right\}(-1) = -1. The sum is 2=2!/1!2 = 2!/1!. For n=3n = 3, m=2m = 2: 6⋅1−1⋅3=3=3!/2!6\cdot 1 - 1\cdot 3 = 3 = 3!/2!. A program check agrees for all n≤6n \le 6 and m≤8m \le 8.

Remarks

The sum is the entry of the product of the matrix of the first kind (with a shifted index) and of the second kind. Eq. 1.2.6(55) is the companion formula.

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.