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

Exercise 1.2.9-5

proved in Lean solution written

RatingM20
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

Prove by induction on nn that (ez−1)n=n!∑k{kn}zk/k!(e^z-1)^n=n!\sum_k\left\{{k\atop n}\right\}z^k/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

Use the recurrence {k+1n+1}=(n+1){kn+1}+{kn}\left\{{k+1\atop n+1}\right\}=(n+1)\left\{{k\atop n+1}\right\}+\left\{{k\atop n}\right\} of the Stirling numbers of the second kind (Section 1.2.6).

Hint 2

Differentiate (ez−1)n+1(e^z-1)^{n+1} and compare coefficients. The derivative of ez−1e^z-1 is ez=(ez−1)+1e^z=(e^z-1)+1.

Solution

Show the solution

Write E=ez−1E=e^z-1 and En=n!∑k{kn}zk/k!E^n=n!\sum_k\left\{{k\atop n}\right\}z^k/k! as the statement P(n)P(n). For n=0n=0 the left side is 11, and the right side is ∑k{k0}zk/k!=1\sum_k\left\{{k\atop0}\right\}z^k/k!=1, since {00}=1\left\{{0\atop0}\right\}=1 and {k0}=0\left\{{k\atop0}\right\}=0 for k>0k>0.

Assume P(n)P(n). Differentiate En+1E^{n+1} and use E′=ez=E+1E'=e^z=E+1:

ddzEn+1=(n+1)En(E+1)=(n+1)En+1+(n+1)En.\frac d{dz}E^{n+1}=(n+1)E^n(E+1)=(n+1)E^{n+1}+(n+1)E^n.

Apply P(n)P(n) to the second term. The first term is (n+1)En+1(n+1)E^{n+1}, which is the unknown. Write En+1=∑kckzk/k!E^{n+1}=\sum_kc_kz^k/k!. Then the derivative has coefficient ck+1c_{k+1} at zk/k!z^k/k!. The right side has coefficient (n+1)ck+(n+1) n!{kn}(n+1)c_k+(n+1)\,n!\left\{{k\atop n}\right\} at zk/k!z^k/k!. So

ck+1=(n+1)ck+(n+1)!{kn}.c_{k+1}=(n+1)c_k+(n+1)!\left\{{k\atop n}\right\}.

The claim P(n+1)P(n+1) is ck=(n+1)!{kn+1}c_k=(n+1)!\left\{{k\atop n+1}\right\}. Put it into the right side of the recurrence for ck+1c_{k+1} and use the Stirling recurrence:

(n+1)(n+1)!{kn+1}+(n+1)!{kn}=(n+1)![(n+1){kn+1}+{kn}]=(n+1)!{k+1n+1}.(n+1)(n+1)!\left\{{k\atop n+1}\right\}+(n+1)!\left\{{k\atop n}\right\}=(n+1)!\left[(n+1)\left\{{k\atop n+1}\right\}+\left\{{k\atop n}\right\}\right]=(n+1)!\left\{{k+1\atop n+1}\right\}.

So the numbers (n+1)!{kn+1}(n+1)!\left\{{k\atop n+1}\right\} satisfy the same recurrence as ckc_k. They also have the same starting value c0=0=(n+1)!{0n+1}c_0=0=(n+1)!\left\{{0\atop n+1}\right\}, because EE has no constant term. A recurrence that gives ck+1c_{k+1} from ckc_k fixes all the ckc_k, so P(n+1)P(n+1) holds.

Check

For n=2n=2: (ez−1)2=z2+z3+712z4+⋯(e^z-1)^2=z^2+z^3+\tfrac7{12}z^4+\cdots. The right side has 2!{32}/3!=2⋅3/6=12!\left\{{3\atop2}\right\}/3!=2\cdot3/6=1 at z3z^3, and 2!{42}/4!=2⋅7/24=7122!\left\{{4\atop2}\right\}/4!=2\cdot7/24=\tfrac7{12} at z4z^4.

Remarks

The sum ∑n(ez−1)nwn\sum_{n}(e^z-1)^nw^n gives the double series 1/(1−w(ez−1))1/(1-w(e^z-1)) of the "ordered Bell numbers". The companion for the first kind is Exercise 1.2.9-17.

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.