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.6-39

Exercise 1.2.6-39

proved in Lean solution written

RatingM10
MarkersM (mathematical)
KindK3, find a value: compute a number, a set or a closed form from the written solution
SectionSection 1.2.6 of Volume 1. Companion chapter: Binomial coefficients

The task

Find ∑k[nk]\sum_k\left[{n \atop k}\right] and ∑k(−1)k[nk]\sum_k(-1)^k\left[{n \atop k}\right].

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 ∑k[nk]xk=xn‾\sum_k\left[{n \atop k}\right]x^k = x^{\overline{n}} (Exercise 1.2.6-32) and put x=1x = 1 and x=−1x = -1.

Solution

Show the solution

At x=1x = 1 the rising power is 1⋅2⋯n=n!1\cdot 2\cdots n = n!, so ∑k[nk]=n!\sum_k\left[{n \atop k}\right] = n!.

At x=−1x = -1 the rising power is (−1)(0)(1)⋯(n−2)(-1)(0)(1)\cdots(n-2). For n=0n = 0 it is the empty product 11, for n=1n = 1 it is −1-1, and for n≥2n \ge 2 the factor 00 occurs, so it is 00. So ∑k(−1)k[nk]=(−1)n\sum_k(-1)^k\left[{n \atop k}\right] = (-1)^n for n≤1n \le 1 and 00 for n≥2n \ge 2.

Check

For n=3n = 3 the row is 0,2,3,10, 2, 3, 1. The sum is 6=3!6 = 3!, and the alternating sum is −2+3−1=0-2 + 3 - 1 = 0. For n=4n = 4 the row is 0,6,11,6,10, 6, 11, 6, 1, with sum 2424 and alternating sum −6+11−6+1=0-6 + 11 - 6 + 1 = 0.

Remarks

The row sum counts all permutations, grouped by the number of cycles. The alternating sum is the sign-weighted count, which vanishes for n≥2n \ge 2 because multiplying by one fixed transposition pairs the even permutations with the odd ones.

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.