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

Exercise 1.2.7-11

proved in Lean solution written

RatingM21
MarkersM (mathematical)
KindK3, find a value: compute a number, a set or a closed form from the written solution
SectionSection 1.2.7 of Volume 1. Companion chapter: Harmonic numbers

The task

Use summation by parts to evaluate ∑1<k≤nHkk(k−1)\sum_{1 < k \le n} \frac{H_k}{k(k-1)}.

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 1k(k−1)\frac{1}{k(k-1)} as a difference of two simple fractions, and apply exercise 10 with aj=−1/ja_j = -1/j and bj=Hj+1b_j = H_{j+1} after the shift j=k−1j = k - 1.

Hint 2

The new sum is a telescoping sum.

Solution

Show the solution

Let j=k−1j = k - 1. Then the sum is ∑1≤j<nHj+1(1j−1j+1)\sum_{1 \le j < n} H_{j+1}\left(\frac1j - \frac{1}{j+1}\right). Put aj=−1ja_j = -\frac1j and bj=Hj+1b_j = H_{j+1}. Then aj+1−aj=1j−1j+1a_{j+1} - a_j = \frac1j - \frac{1}{j+1}, and bj+1−bj=1j+2b_{j+1} - b_j = \frac{1}{j+2}. By exercise 10,

∑1≤j<n(aj+1−aj)bj=anbn−a1b1−∑1≤j<naj+1(bj+1−bj)=−Hn+1n+H2+∑1≤j<n1(j+1)(j+2).\sum_{1 \le j < n}(a_{j+1} - a_j)b_j = a_nb_n - a_1b_1 - \sum_{1 \le j < n}a_{j+1}(b_{j+1} - b_j) = -\frac{H_{n+1}}{n} + H_2 + \sum_{1 \le j < n}\frac{1}{(j+1)(j+2)}.

The last sum telescopes: ∑1≤j<n(1j+1−1j+2)=12−1n+1\sum_{1 \le j < n}\left(\frac{1}{j+1} - \frac{1}{j+2}\right) = \frac12 - \frac{1}{n+1}. With H2=32H_2 = \frac32, the total is

2−Hn+1n−1n+1.2 - \frac{H_{n+1}}{n} - \frac{1}{n+1}.

Use Hn+1=Hn+1n+1H_{n+1} = H_n + \frac{1}{n+1}. Then Hn+1n+1n+1=Hnn+1n(n+1)+1n+1=Hnn+1n\frac{H_{n+1}}{n} + \frac{1}{n+1} = \frac{H_n}{n} + \frac{1}{n(n+1)} + \frac{1}{n+1} = \frac{H_n}{n} + \frac1n. So

∑1<k≤nHkk(k−1)=2−Hn+1n.\sum_{1 < k \le n}\frac{H_k}{k(k-1)} = 2 - \frac{H_n + 1}{n}.

Check

For n=2n = 2 the sum is H22=34\frac{H_2}{2} = \frac34, and 2−3/2+12=342 - \frac{3/2 + 1}{2} = \frac34. For n=3n = 3 the sum is 34+11/66=1918\frac34 + \frac{11/6}{6} = \frac{19}{18}, and 2−11/6+13=19182 - \frac{11/6 + 1}{3} = \frac{19}{18}. For n=6n = 6 both sides are 5740\frac{57}{40}. The sum tends to 22 as n→∞n \to \infty.

Remarks

The limit 22 is the value of the infinite series ∑k≥2Hkk(k−1)\sum_{k \ge 2}\frac{H_k}{k(k-1)}.

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.