Exercise · Volume 1 · 1.2.1-11
Exercise 1.2.1-11
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.1 of Volume 1. Companion chapter: Mathematical induction |
The task
Find and prove a simple formula for the alternating sum .
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
Compute the sums for as fractions and look at the numerators and denominators.
Hint 2
The denominator factors as .
Hint 3
Prove that the guessed value satisfies the th term, and use induction.
Solution
Show the solution
Let and let .
Guess. , , and . The denominators are , and the numerators are , which is . So the guess is
Proof. The formula is true for . Let be the right-hand side, with . It is enough to show for . Put . Then and , so Now The numerator is . So . By induction on , .
Check
For : the terms are , and the sum is , while . A python3 run with exact fractions agreed with the formula for .
Remarks
The proof shows that the partial sums telescope, with as the th term. The factorization is known as the identity of Sophie Germain. The method of telescoping sums is in the C1 chapter of Section 1.2.3.
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_1.Ex11.statementaxioms: Classical.choice, Quot.sound, propext - Solution:
TAOCP.S1_2_1.Ex11.solvedaxioms: Classical.choice, Quot.sound, propext
The status is computed from the Lean build. The node of the map.
Something is wrong? Report it.