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

Exercise 1.2.6-35

proved in Lean solution written

RatingM23
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 recurrences [n+1m]=n[nm]+[nm−1]\left[{n+1 \atop m}\right] = n\left[{n \atop m}\right] + \left[{n \atop m-1}\right] and {n+1m}=m{nm}+{nm−1}\left\{{n+1 \atop m}\right\} = m\left\{{n \atop m}\right\} + \left\{{n \atop m-1}\right\} from the two defining polynomial identities.

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

Write xn+1‾=xn‾(x−n)x^{\underline{n+1}} = x^{\underline{n}}(x-n) and xn+1=x⋅xnx^{n+1} = x\cdot x^n.

Hint 2

Compare coefficients. The powers xkx^k are a basis of polynomials, and so are the falling powers xk‾x^{\underline{k}}.

Hint 3

For the second formula use x⋅xk‾=xk+1‾+k xk‾x\cdot x^{\underline{k}} = x^{\underline{k+1}} + k\,x^{\underline{k}}.

Solution

Show the solution

A polynomial that is zero for all real xx has all coefficients zero. So two expansions of one polynomial in the powers xkx^k have the same coefficients. The falling powers xk‾x^{\underline{k}} have the degrees kk, one for each degree, so they are also a basis, and an expansion in them is unique.

First kind. Write cn,kc_{n,k} for [nk]\left[{n \atop k}\right]. Then xn+1‾=(x−n)∑k(−1)n−kcn,kxk=∑k(−1)n−kcn,kxk+1−n∑k(−1)n−kcn,kxk.x^{\underline{n+1}} = (x-n)\sum_k(-1)^{n-k}c_{n,k}x^k = \sum_k(-1)^{n-k}c_{n,k}x^{k+1} - n\sum_k(-1)^{n-k}c_{n,k}x^k. The coefficient of xmx^m is (−1)n−m+1cn,m−1−n(−1)n−mcn,m(-1)^{n-m+1}c_{n,m-1} - n(-1)^{n-m}c_{n,m}. By eq. (44) for n+1n+1, the same coefficient is (−1)n+1−mcn+1,m(-1)^{n+1-m}c_{n+1,m}. Multiply both by (−1)n+1−m(-1)^{n+1-m}: cn+1,m=cn,m−1+n cn,m.c_{n+1,m} = c_{n,m-1} + n\,c_{n,m}. For m=0m = 0 the term with cn,−1c_{n,-1} is absent, and the result is cn+1,0=n cn,0c_{n+1,0} = n\,c_{n,0}. This is the claim for the pair (m+1)(m+1) and for the column 00.

Second kind. Write dn,kd_{n,k} for {nk}\left\{{n \atop k}\right\}. Since x⋅xk‾=xk‾((x−k)+k)=xk+1‾+k xk‾x\cdot x^{\underline{k}} = x^{\underline{k}}\bigl((x-k)+k\bigr) = x^{\underline{k+1}} + k\,x^{\underline{k}}, xn+1=∑kdn,k x xk‾=∑kdn,kxk+1‾+∑kk dn,kxk‾.x^{n+1} = \sum_k d_{n,k}\,x\,x^{\underline{k}} = \sum_k d_{n,k}x^{\underline{k+1}} + \sum_k k\,d_{n,k}x^{\underline{k}}. The coefficient of xm‾x^{\underline{m}} is dn,m−1+m dn,md_{n,m-1} + m\,d_{n,m}. By eq. (45) for n+1n+1 and by uniqueness, dn+1,m=dn,m−1+m dn,md_{n+1,m} = d_{n,m-1} + m\,d_{n,m}. For m=0m = 0 the coefficient is 0⋅dn,00\cdot d_{n,0} and there is no x−1‾x^{\underline{-1}}, so dn+1,0=0d_{n+1,0} = 0.

Check

The rows n=3n = 3 and n=4n = 4 of the first kind are 0,2,3,10, 2, 3, 1 and 0,6,11,6,10, 6, 11, 6, 1. The formula gives c4,2=3⋅3+2=11c_{4,2} = 3\cdot 3 + 2 = 11. For the second kind the rows are 0,1,3,10, 1, 3, 1 and 0,1,7,6,10, 1, 7, 6, 1, and d4,2=2⋅3+1=7d_{4,2} = 2\cdot 3 + 1 = 7.

Remarks

The second formula counts the partitions of an (n+1)(n+1)-set into mm blocks: element n+1n+1 is alone (the term dn,m−1d_{n,m-1}) or joins one of mm blocks. The first formula has the same reading for permutations and cycles.

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.