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

Exercise 1.2.9-9

proved in Lean solution written

RatingM11
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

Write h4h_4 in terms of S1,S2,S3,S4S_1,S_2,S_3,S_4.

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 formula (38) with m=4m=4.

Hint 2

List the five partitions of 44 and compute one term for each.

Solution

Show the solution

By Eq. (38), h4h_4 is the sum over the solutions of k1+2k2+3k3+4k4=4k_1+2k_2+3k_3+4k_4=4 of ∏jSjkj/(jkjkj!)\prod_jS_j^{k_j}/(j^{k_j}k_j!). The five partitions of 44 give

partition (k1,k2,k3,k4)(k_1,k_2,k_3,k_4) term
1+1+1+11+1+1+1 (4,0,0,0)(4,0,0,0) S14/(14⋅4!)=S14/24S_1^4/(1^4\cdot4!)=S_1^4/24
2+1+12+1+1 (2,1,0,0)(2,1,0,0) S12S2/(2!⋅2)=S12S2/4S_1^2S_2/(2!\cdot2)=S_1^2S_2/4
2+22+2 (0,2,0,0)(0,2,0,0) S22/(22⋅2!)=S22/8S_2^2/(2^2\cdot2!)=S_2^2/8
3+13+1 (1,0,1,0)(1,0,1,0) S1S3/3S_1S_3/3
44 (0,0,0,1)(0,0,0,1) S4/4S_4/4

So

h4=S1424+S12S24+S228+S1S33+S44.h_4=\frac{S_1^4}{24}+\frac{S_1^2S_2}4+\frac{S_2^2}8+\frac{S_1S_3}3+\frac{S_4}4.

Check

Take x=(1,1)x=(1,1). Then h4=5h_4=5, the number of multisets of size 44 from two elements, and Sj=2S_j=2 for all jj. The terms are 2424=23\frac{2^4}{24}=\frac23, 22⋅24=2\frac{2^2\cdot2}4=2, 228=12\frac{2^2}8=\frac12, 2⋅23=43\frac{2\cdot2}3=\frac43 and 24=12\frac24=\frac12. Their sum is 55. A symbolic check with four variables in Python gives zero difference.

Remarks

The coefficients 1/24,1/4,1/8,1/3,1/41/24,1/4,1/8,1/3,1/4 add to 11 when all Sj=1S_j=1, matching h4=1h_4=1 for one variable x=1x=1. The inverse formulas are in Exercises 1.2.9-10 and 1.2.9-11.

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.