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

Exercise 1.2.7-16

proved in Lean solution written

Rating18
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

Express 1+13+⋯+12n−11 + \frac13 + \cdots + \frac{1}{2n-1} with harmonic numbers.

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

Split H2nH_{2n} into the terms with odd denominators and the terms with even denominators.

Solution

Show the solution

H2nH_{2n} has the terms 1k\frac1k for 1≤k≤2n1 \le k \le 2n. The terms with even k=2ik = 2i give ∑i=1n12i=12Hn\sum_{i=1}^{n}\frac{1}{2i} = \frac12H_n. The terms with odd k=2i−1k = 2i - 1 give the sum On=1+13+⋯+12n−1O_n = 1 + \frac13 + \cdots + \frac{1}{2n-1} that the exercise asks for. So H2n=On+12HnH_{2n} = O_n + \frac12H_n, and

On=H2n−12Hn.O_n = H_{2n} - \frac12H_n.

Check

For n=3n = 3: 1+13+15=23151 + \frac13 + \frac15 = \frac{23}{15}, and H6−12H3=4920−1112=2315H_6 - \frac12H_3 = \frac{49}{20} - \frac{11}{12} = \frac{23}{15}. Python checks n=1,…,39n = 1, \ldots, 39. For n=1n = 1: H2−12H1=32−12=1H_2 - \frac12H_1 = \frac32 - \frac12 = 1.

Remarks

Another form is H2n−1−12Hn−1H_{2n-1} - \frac12H_{n-1}, since both HH's lose the same last term 12n\frac{1}{2n}. Exercise 1.2.7-18 asks for the powers of 2 in the numerator of this sum.

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.