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

Exercise 1.2.9-11

stated 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 coefficient of h1k1⋯hmkmh_1^{k_1}\cdots h_m^{k_m} in the formula for SmS_m, when k1+2k2+⋯+mkm=mk_1+2k_2+\cdots+mk_m=m.

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 ∑kSkzk/k=ln⁡(1+h1z+h2z2+⋯ )\sum_kS_kz^k/k=\ln(1+h_1z+h_2z^2+\cdots).

Hint 2

Expand ln⁡(1+u)=∑(−1)k−1uk/k\ln(1+u)=\sum(-1)^{k-1}u^k/k and use the multinomial theorem for uku^k.

Solution

Show the solution

By Eq. (37), ∑j≥1Sjzj/j=ln⁡G(z)\sum_{j\ge1}S_jz^j/j=\ln G(z) with G(z)=1+uG(z)=1+u, u=h1z+h2z2+⋯+hmzm+⋯u=h_1z+h_2z^2+\cdots+h_mz^m+\cdots. Then ln⁡(1+u)=∑k≥1(−1)k−1uk/k\ln(1+u)=\sum_{k\ge1}(-1)^{k-1}u^k/k. The multinomial theorem gives

uk=∑k!k1!⋯km!h1k1⋯hmkmzk1+2k2+⋯+mkm,u^k=\sum\frac{k!}{k_1!\cdots k_m!}h_1^{k_1}\cdots h_m^{k_m}z^{k_1+2k_2+\cdots+mk_m},

summed over k1,…,km≥0k_1,\ldots,k_m\ge0 with k1+⋯+km=kk_1+\cdots+k_m=k. The coefficient of zmz^m in ln⁡G\ln G takes the terms with k1+2k2+⋯+mkm=mk_1+2k_2+\cdots+mk_m=m, and in each term k=k1+⋯+kmk=k_1+\cdots+k_m is fixed by the exponents. So

Smm=∑k1+2k2+⋯+mkm=m(−1)k−1kk!k1!⋯km!h1k1⋯hmkm.\frac{S_m}m=\sum_{k_1+2k_2+\cdots+mk_m=m}\frac{(-1)^{k-1}}k\frac{k!}{k_1!\cdots k_m!}h_1^{k_1}\cdots h_m^{k_m}.

Multiply by mm. The coefficient of h1k1⋯hmkmh_1^{k_1}\cdots h_m^{k_m} in SmS_m is

(−1)k−1m (k−1)!k1! k2!⋯km!,k=k1+k2+⋯+km.(-1)^{k-1}\frac{m\,(k-1)!}{k_1!\,k_2!\cdots k_m!},\qquad k=k_1+k_2+\cdots+k_m.

Check

For m=3m=3 and (k1,k2,k3)=(1,1,0)(k_1,k_2,k_3)=(1,1,0): k=2k=2, coefficient −3⋅1!/(1!1!)=−3-3\cdot1!/(1!1!)=-3, which matches −3h1h2-3h_1h_2. For (3,0,0)(3,0,0): k=3k=3, coefficient +3⋅2!/3!=1+3\cdot2!/3!=1, matching h13h_1^3. For (0,0,1)(0,0,1): 3⋅0!/1=33\cdot0!/1=3, matching 3h33h_3.

Remarks

The formula is Waring's formula for the power sum in terms of the complete symmetric functions. The analogue for eje_j has the factor (−1)m−k(-1)^{m-k} in place of (−1)k−1(-1)^{k-1} with the same absolute value.

This solution is drafted, and a person has not reviewed it yet. The source.

In Lean

stated The statement is in Lean and it builds. The proof is not in Lean yet.

The status is computed from the Lean build. The node of the map.

Something is wrong? Report it.