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.9-12

Exercise 1.2.9-12

proved in Lean solution written

RatingM20
MarkersM (mathematical)
KindK3, find a value: compute a number, a set or a closed form from the written solution
SectionSection 1.2.9 of Volume 1. Companion chapter: Generating functions

The task

Show how a doubly indexed sequence amna_{mn} is stored in one series of two variables, and find the series for (nm)\binom nm.

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

Put amna_{mn} as the coefficient of wmznw^mz^n.

Hint 2

Sum first over mm for fixed nn, using the binomial theorem, then sum over nn as a geometric series.

Solution

Show the solution

The series of two variables is G(w,z)=∑m,n≥0amnwmznG(w,z)=\sum_{m,n\ge0}a_{mn}w^mz^n. Two such series are equal when all coefficients are equal. Series are added and multiplied by the rules of polynomials, and a series whose constant term is 11 has an inverse.

For amn=(nm)a_{mn}=\binom nm the sum over mm is ∑m(nm)wm=(1+w)n\sum_m\binom nmw^m=(1+w)^n, and (nm)=0\binom nm=0 for m>nm>n. So

G(w,z)=∑n≥0(1+w)nzn=11−(1+w)z=11−z−wz.G(w,z)=\sum_{n\ge0}(1+w)^nz^n=\frac1{1-(1+w)z}=\frac1{1-z-wz}.

Exchanging the order of summation is valid here, because each coefficient of wmznw^mz^n is a finite sum.

Check

Expand 1/(1−z−wz)=∑n(z+wz)n1/(1-z-wz)=\sum_n(z+wz)^n. The coefficient of w2z3w^2z^3 is the coefficient of w2w^2 in (1+w)3(1+w)^3, which is 3=(32)3=\binom32. The coefficient of wzwz is 1=(11)1=\binom11.

Remarks

Fixing mm instead gives ∑n(nm)zn=zm/(1−z)m+1\sum_n\binom nmz^n=z^m/(1-z)^{m+1}, which is the identity used in Exercise 1.2.9-20.

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.