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

Exercise 1.2.9-2

proved in Lean solution written

RatingM13
MarkersM (mathematical)
KindK1, prove: show that a stated fact is true from the written solution
SectionSection 1.2.9 of Volume 1. Companion chapter: Generating functions

The task

Show that the product of the series ∑anzn/n!\sum a_nz^n/n! and ∑bnzn/n!\sum b_nz^n/n! is the series ∑cnzn/n!\sum c_nz^n/n! with cn=∑k(nk)akbn−kc_n=\sum_k\binom nk a_kb_{n-k}.

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 the coefficient of znz^n in the product with the rule for the product of two power series (Part C of the section).

Hint 2

Put the factor n!n! in front and recognize a binomial coefficient.

Solution

Show the solution

The product of two power series A(z)=∑jujzjA(z)=\sum_j u_jz^j and B(z)=∑jvjzjB(z)=\sum_j v_jz^j is ∑n(∑k=0nukvn−k)zn\sum_n\bigl(\sum_{k=0}^n u_kv_{n-k}\bigr)z^n. Take uk=ak/k!u_k=a_k/k! and vj=bj/j!v_j=b_j/j!. Then the coefficient of znz^n in the product is

∑k=0nakk!bn−k(n−k)!=1n!∑k=0nn!k! (n−k)!akbn−k=1n!∑k=0n(nk)akbn−k=cnn!.\sum_{k=0}^n\frac{a_k}{k!}\frac{b_{n-k}}{(n-k)!}=\frac1{n!}\sum_{k=0}^n\frac{n!}{k!\,(n-k)!}a_kb_{n-k}=\frac1{n!}\sum_{k=0}^n\binom nk a_kb_{n-k}=\frac{c_n}{n!}.

This holds for every n≥0n\ge0, so the two series are equal. The argument is an identity between formal series, so it needs no convergence.

Check

Take ak=bk=1a_k=b_k=1. Then A=B=ezA=B=e^z, and cn=∑k(nk)=2nc_n=\sum_k\binom nk=2^n. The product is e2z=∑2nzn/n!e^{2z}=\sum 2^nz^n/n!, which agrees. Take ak=1a_k=1 and bk=kb_k=k for n=2n=2: c2=(20)⋅1⋅2+(21)⋅1⋅1+(22)⋅1⋅0=4c_2=\binom20\cdot1\cdot2+\binom21\cdot1\cdot1+\binom22\cdot1\cdot0=4. The product of eze^z and zezze^z is ze2zze^{2z}, whose z2z^2 coefficient is 22, and 2=c2/2!2=c_2/2!.

Remarks

This is the reason for using exponential generating functions with binomial convolutions, as in the Stirling numbers (Exercise 1.2.9-5) and in the Bell and Bernoulli numbers.

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.