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

Exercise 1.2.7-6

proved in Lean solution written

RatingM15
MarkersM (mathematical)
KindK1, prove: show that a stated fact is true from the written solution
SectionSection 1.2.7 of Volume 1. Companion chapter: Harmonic numbers

The task

Prove that Hn=[n+12]/n!H_n = \left[{n+1 \atop 2}\right]/n!.

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

Recall the recurrence of the Stirling numbers of the first kind, which counts the permutations of nn objects by cycles.

Hint 2

Apply it to [n+12]\left[{n+1 \atop 2}\right] and divide by n!n!. The result is a recurrence for HnH_n.

Solution

Show the solution

Recurrence. The Stirling number [n+1k]\left[{n+1 \atop k}\right] counts the permutations of {1,…,n+1}\{1, \ldots, n+1\} with exactly kk cycles. Look at the element n+1n+1. If it forms a cycle alone, the other elements form a permutation of {1,…,n}\{1, \ldots, n\} with k−1k - 1 cycles. Otherwise delete n+1n+1 from its cycle: this gives a permutation of {1,…,n}\{1, \ldots, n\} with kk cycles, and n+1n+1 can be put back after any one of the nn elements. So

[n+1k]=n[nk]+[nk−1].\left[{n+1 \atop k}\right] = n\left[{n \atop k}\right] + \left[{n \atop k-1}\right].

For k=1k = 1 the cycle count is one, so [n1]=(n−1)!\left[{n \atop 1}\right] = (n-1)! for n≥1n \ge 1. This is the number of cyclic arrangements of nn objects.

Proof by induction. Let cn=[n+12]/n!c_n = \left[{n+1 \atop 2}\right]/n!. For n=0n = 0, [12]=0\left[{1 \atop 2}\right] = 0 and H0=0H_0 = 0. For n≥1n \ge 1 the recurrence with k=2k = 2 gives

[n+12]=n[n2]+[n1]=n[n2]+(n−1)!.\left[{n+1 \atop 2}\right] = n\left[{n \atop 2}\right] + \left[{n \atop 1}\right] = n\left[{n \atop 2}\right] + (n-1)!.

Divide by n!n!: cn=[n2](n−1)!+1n=cn−1+1nc_n = \dfrac{\left[{n \atop 2}\right]}{(n-1)!} + \dfrac{1}{n} = c_{n-1} + \dfrac1n. So cnc_n and HnH_n have the same start value and the same recurrence, and cn=Hnc_n = H_n.

Check

For n=1,…,5n = 1, \ldots, 5 the values [n+12]\left[{n+1 \atop 2}\right] are 1,3,11,50,2741, 3, 11, 50, 274. The products n! Hnn!\,H_n are 11, 33, 1111, 5050, 274274. For example 3! H3=6⋅116=11=[42]3!\,H_3 = 6 \cdot \frac{11}{6} = 11 = \left[{4 \atop 2}\right].

Remarks

The numbers n! Hnn!\,H_n are the integers 0,1,3,11,50,274,…0, 1, 3, 11, 50, 274, \ldots. More generally, [n+1k+1]/n!\left[{n+1 \atop k+1}\right]/n! is the sum of the products of kk distinct reciprocals 1/i1/i with 1≤i≤n1 \le i \le n.

This solution is checked, 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.