Exercise · Volume 1 · 1.2.5-24
Exercise 1.2.5-24
proved in Lean solution written
| Rating | HM21 |
|---|---|
| Markers | HM (needs higher mathematics), recommended |
| Kind | K1, prove: show that a stated fact is true from the written solution |
| Section | Section 1.2.5 of Volume 1. Companion chapter: Permutations and factorials |
The task
Prove that for each 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 ratio of the bound for to the bound for , and use induction. The ratios are and .
Hint 2
Compare these two ratios with by the inequality , for one positive and one negative.
Solution
Show the solution
Let and . The claim is . For , .
Ratios. For ,
Upper bound for . Put in . Then , so . Thus , and induction from gives . This is .
Lower bound for . Put . Then , so . Raise both sides to the power : . Thus , and induction from gives . This is .
Check
For : , and , so . For both bounds equal . Python tests all from to and finds no violation.
Remarks
The inequality holds for every real . The two bounds differ by the factor . Stirling's formula in Section 1.2.11 gives the sharper value .
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_5.Ex24.statementaxioms: Classical.choice, Quot.sound, propext - Solution:
TAOCP.S1_2_5.Ex24.solvedaxioms: Classical.choice, Quot.sound, propext
The status is computed from the Lean build. The node of the map.
Something is wrong? Report it.