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

Exercise 1.2.7-3

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

Show that for real r>1r > 1 the sums Hn(r)H_n^{(r)} stay bounded as nn grows, and give an upper bound.

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

Cut the terms into blocks, the block jj holding the kk with 2j≤k<2j+12^j \le k < 2^{j+1}. Count the terms of each block and bound the largest one.

Hint 2

The bounds of the blocks form a geometric series with ratio 21−r<12^{1-r} < 1.

Solution

Show the solution

Block j≥0j \ge 0 holds the indices kk with 2j≤k<2j+12^j \le k < 2^{j+1}. It has 2j2^j terms, and each term 1/kr1/k^r is at most 1/2jr1/2^{jr}, because r>0r > 0. So the block sum is at most 2j⋅2−jr=qj2^j \cdot 2^{-jr} = q^j with q=21−rq = 2^{1-r}. Since r>1r > 1, 0<q<10 < q < 1.

Let nn be any positive integer and choose JJ with n<2Jn < 2^J. All indices 1≤k≤n1 \le k \le n lie in the blocks 0,…,J−10, \ldots, J-1. Thus

Hn(r)≤∑j=0J−1qj<∑j=0∞qj=11−21−r.H_n^{(r)} \le \sum_{j=0}^{J-1} q^j < \sum_{j=0}^{\infty} q^j = \frac{1}{1 - 2^{1-r}}.

The bound does not depend on nn.

Check

For r=2r = 2 the bound is 11−1/2=2\frac{1}{1 - 1/2} = 2. Python gives H400(2)=1.6424H_{400}^{(2)} = 1.6424, below 22, and the limit is π2/6=1.6449\pi^2/6 = 1.6449. For r=3r = 3 the bound is 11−1/4=1.333\frac{1}{1 - 1/4} = 1.333, and H∞(3)=1.202H_\infty^{(3)} = 1.202.

Remarks

The bound is close to the true limit only for large rr: for r→∞r \to \infty it tends to 11. Exercise 1.2.7-12 shows how fast H∞(r)H_\infty^{(r)} approaches 11.

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.