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

Exercise 1.2.7-13

proved in Lean solution written

RatingM22
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 ∑k=1nxkk=Hn+∑k=1n(nk)(x−1)kk\sum_{k=1}^{n}\frac{x^k}{k} = H_n + \sum_{k=1}^{n}\binom nk\frac{(x-1)^k}{k}.

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

Both sides are polynomials in xx. Compare their derivatives.

Hint 2

The derivative of the right side is a binomial sum. Sum it with the binomial theorem.

Hint 3

Two polynomials with the same derivative differ by a constant. Find the constant at x=1x = 1.

Solution

Show the solution

Let L(x)L(x) be the left side and R(x)R(x) the right side. Both are polynomials in xx.

Derivatives. L′(x)=∑k=1nxk−1L'(x) = \sum_{k=1}^{n}x^{k-1}. For RR, put y=x−1y = x - 1. Then R′(x)=∑k=1n(nk)yk−1R'(x) = \sum_{k=1}^{n}\binom nk y^{k-1}. For y≠0y \ne 0 the binomial theorem gives ∑k=1n(nk)yk−1=(1+y)n−1y=xn−1x−1=∑k=1nxk−1\sum_{k=1}^{n}\binom nk y^{k-1} = \frac{(1+y)^n - 1}{y} = \frac{x^n - 1}{x - 1} = \sum_{k=1}^{n}x^{k-1}. So L′(x)=R′(x)L'(x) = R'(x) for all x≠1x \ne 1. Two polynomials that agree at infinitely many points are equal, so L′=R′L' = R' as polynomials.

Constant. Then L−RL - R is a constant. At x=1x = 1, L(1)=∑k=1n1k=HnL(1) = \sum_{k=1}^{n}\frac1k = H_n and R(1)=Hn+0R(1) = H_n + 0, since each term of the second sum has the factor (x−1)k=0(x-1)^k = 0. So the constant is 00 and L=RL = R.

Check

Take n=2n = 2 and x=3x = 3. The left side is 3+92=1523 + \frac92 = \frac{15}{2}. The right side is H2+(21)21+(22)42=32+4+2=152H_2 + \binom21\frac{2}{1} + \binom22\frac{4}{2} = \frac32 + 4 + 2 = \frac{15}{2}. Python checks the identity with exact fractions for n=3,5,8n = 3, 5, 8 and x=37x = \frac37. At x=0x = 0 the identity reads 0=Hn+∑k=1n(nk)(−1)kk0 = H_n + \sum_{k=1}^n\binom nk\frac{(-1)^k}{k}.

Remarks

At x=0x = 0 the identity gives Hn=∑k=1n(−1)k+1(nk)1kH_n = \sum_{k=1}^{n}(-1)^{k+1}\binom nk\frac1k, which is the inverse of the relation in exercise 1.2.7-9.

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.