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

Exercise 1.2.9-10

proved in Lean solution written

RatingM25
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

Find the generating function of the elementary symmetric functions eme_m, express eme_m with the power sums, and write out e1,…,e4e_1,\ldots,e_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

Each xjx_j may be used at most once in a product, so each variable gives the factor 1+xjz1+x_jz.

Hint 2

Take the logarithm as in the derivation of (37), but now with ln⁡(1+w)\ln(1+w).

Hint 3

Compare with (38): the sign of Skzk/kS_kz^k/k changes to (−1)k+1Skzk/k(-1)^{k+1}S_kz^k/k.

Solution

Show the solution

In eme_m every xjx_j appears at most once, so the generating function is E(z)=∑memzm=∏j=1n(1+xjz)E(z)=\sum_me_mz^m=\prod_{j=1}^n(1+x_jz). Take logarithms. With ln⁡(1+w)=∑k≥1(−1)k+1wk/k\ln(1+w)=\sum_{k\ge1}(-1)^{k+1}w^k/k,

ln⁡E(z)=∑j∑k≥1(−1)k+1xjkzkk=∑k≥1(−1)k+1Skzkk.\ln E(z)=\sum_j\sum_{k\ge1}\frac{(-1)^{k+1}x_j^kz^k}k=\sum_{k\ge1}\frac{(-1)^{k+1}S_kz^k}k.

So E(z)=exp⁡(∑k(−1)k+1Skzk/k)E(z)=\exp\bigl(\sum_k(-1)^{k+1}S_kz^k/k\bigr), and the steps of Exercise 1.2.9-7 give

em=∑k1+2k2+⋯+mkm=m ∏j=1m((−1)j+1Sj)kjjkjkj!.e_m=\sum_{k_1+2k_2+\cdots+mk_m=m}\ \prod_{j=1}^m\frac{\bigl((-1)^{j+1}S_j\bigr)^{k_j}}{j^{k_j}k_j!}.

The sign of the term for a partition with k=∑kjk=\sum k_j parts is (−1)m−k(-1)^{m-k}, since ∑(j+1)kj=m+k\sum(j+1)k_j=m+k. The terms for m≤4m\le4 come from the partition lists. For m=2m=2: S12/2−S2/2S_1^2/2-S_2/2. For m=3m=3: S13/6−S1S2/2+S3/3S_1^3/6-S_1S_2/2+S_3/3. For m=4m=4: S14/24−S12S2/4+S22/8+S1S3/3−S4/4S_1^4/24-S_1^2S_2/4+S_2^2/8+S_1S_3/3-S_4/4. Hence

e1=S1,e2=12(S12−S2),e3=16(S13−3S1S2+2S3),e_1=S_1,\qquad e_2=\tfrac12(S_1^2-S_2),\qquad e_3=\tfrac16(S_1^3-3S_1S_2+2S_3), e4=124(S14−6S12S2+3S22+8S1S3−6S4).e_4=\tfrac1{24}(S_1^4-6S_1^2S_2+3S_2^2+8S_1S_3-6S_4).

Check

For x=(1,2,3)x=(1,2,3): S1=6S_1=6, S2=14S_2=14, S3=36S_3=36. Then e2=(36−14)/2=11e_2=(36-14)/2=11, which is 1⋅2+1⋅3+2⋅31\cdot2+1\cdot3+2\cdot3. And e3=(216−3⋅6⋅14+72)/6=36/6=6=1⋅2⋅3e_3=(216-3\cdot6\cdot14+72)/6=36/6=6=1\cdot2\cdot3. Python confirms the formula for e4e_4 with four symbols.

Remarks

The relation E(z)H(−z)=1E(z)H(-z)=1 gives ∑j(−1)jejhm−j=0\sum_{j}(-1)^je_jh_{m-j}=0, which links the two families. Newton's identities are the analogue of (39).

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.