Exercise · Volume 1 · 1.2.7-19
Exercise 1.2.7-19
proved in Lean solution written
| Rating | M30 |
|---|---|
| Markers | M (mathematical) |
| Kind | K3, find a value: compute a number, a set or a closed form from the written solution |
| Section | Section 1.2.7 of Volume 1. Companion chapter: Harmonic numbers |
The task
List all nonnegative integers for which is an integer.
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
Look at the highest power of that divides one denominator . How many terms have that power?
Solution
Show the solution
Answer: and .
and are integers. Let and let be the integer with , so . Use the 2-adic valuation . For , the number has , with equality only for the multiples of . The multiples of up to are only , since . So the term has , and all other terms have .
Then , because one term has the smallest valuation, and the sum of that term and terms of larger valuation keeps the smallest valuation. Since , and is not an integer.
Check
Python tests all and finds only and . For : has with since . For : and .
Remarks
The same argument shows that the denominator of is divisible by for . So the denominator of is even for every .
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.
- Problem:
TAOCP.S1_2_7.Ex19.statementaxioms: Classical.choice, Quot.sound, propext - Solution:
TAOCP.S1_2_7.Ex19.solvedaxioms: Classical.choice, Quot.sound, propext
The status is computed from the Lean build. The node of the map.
Something is wrong? Report it.