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

Exercise 1.2.7-17

stated in Lean solution written

RatingM24
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

Show that for an odd prime pp the numerator of Hp−1H_{p-1} is divisible by pp.

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

Pair the terms 1k\frac1k and 1p−k\frac{1}{p-k} and combine each pair into one fraction.

Hint 2

Show that, after the pairing, a factor pp stands in front of a rational number whose denominator has no factor pp.

Solution

Show the solution

Write Hp−1=∑k=1p−11kH_{p-1} = \sum_{k=1}^{p-1}\frac1k. The map k↦p−kk \mapsto p - k permutes {1,…,p−1}\{1, \ldots, p-1\}, so also Hp−1=∑k=1p−11p−kH_{p-1} = \sum_{k=1}^{p-1}\frac{1}{p-k}. Add the two forms and divide by 22:

Hp−1=12∑k=1p−1(1k+1p−k)=12∑k=1p−1pk(p−k)=p2∑k=1p−11k(p−k).H_{p-1} = \frac12\sum_{k=1}^{p-1}\left(\frac1k + \frac{1}{p-k}\right) = \frac12\sum_{k=1}^{p-1}\frac{p}{k(p-k)} = \frac{p}{2}\sum_{k=1}^{p-1}\frac{1}{k(p-k)}.

Each kk and each p−kp - k is a number between 11 and p−1p - 1, so k(p−k)k(p-k) divides ((p−1)!)2((p-1)!)^2. Therefore the sum has the form N/((p−1)!)2N/((p-1)!)^2 with an integer NN, and Hp−1=pN2((p−1)!)2H_{p-1} = \dfrac{pN}{2((p-1)!)^2}.

Let Hp−1=a/bH_{p-1} = a/b in lowest terms. Then a⋅2((p−1)!)2=p N ba \cdot 2((p-1)!)^2 = p\,N\,b, so pp divides a⋅2((p−1)!)2a \cdot 2((p-1)!)^2. The prime pp is odd, so it does not divide 22, and it does not divide (p−1)!(p-1)!. So pp divides aa.

Check

H2=32H_2 = \frac32, H4=2512H_4 = \frac{25}{12}, H6=4920H_6 = \frac{49}{20}, H10=73812520H_{10} = \frac{7381}{2520}, H12=8602127720H_{12} = \frac{86021}{27720}. The numerators 33, 2525, 4949, 7381=11⋅6717381 = 11 \cdot 671 and 86021=13⋅661786021 = 13 \cdot 6617 are divisible by p=3,5,7,11,13p = 3, 5, 7, 11, 13. For p=5,7,11,13p = 5, 7, 11, 13 the numerator is also divisible by p2p^2, as 2525, 4949, 7381=112⋅617381 = 11^2 \cdot 61 and 86021=132⋅50986021 = 13^2 \cdot 509 show.

Remarks

For p≥5p \ge 5 the numerator is also divisible by p2p^2, which is Wolstenholme's theorem of 1862. For p=2p = 2 the claim fails: H1=1H_1 = 1.

This solution is checked, and a person has not reviewed it yet. The source.

In Lean

stated The statement is in Lean and it builds. The proof is not in Lean yet.

The status is computed from the Lean build. The node of the map.

Something is wrong? Report it.