Exercise · Volume 1 · 1.2.7-8
Exercise 1.2.7-8
stated in Lean solution written
| Rating | HM18 |
|---|---|
| Markers | HM (needs higher mathematics) |
| 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
Compare of eq. (8) with and estimate the difference as a function of .
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 the first sum in closed form with eq. (8), and the second as .
Hint 2
Insert eq. (3) for and Stirling's formula for , and collect the terms by their order in .
Solution
Show the solution
By eq. (8), , and . Let be the difference. Use
Then
Subtract and :
The terms and cancel. So
The constant is , since and .
Check
Python computes exactly and subtracts . The remainders are , and for , and . They are close to , and .
Remarks
The sum is the sum of the errors of the approximation . It grows like , since each term is near .
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.
- Problem:
TAOCP.S1_2_7.Ex8.statementaxioms: Classical.choice, Quot.sound, propext
The status is computed from the Lean build. The node of the map.
Something is wrong? Report it.