Exercise · Volume 1 · 1.2.1-7
Exercise 1.2.1-7
proved in Lean solution written
| Rating | 23 |
|---|---|
| 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 a closed form for the alternating sums , , , and prove it by induction.
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 first five sums and look at them.
Hint 2
Let be the th sum. Write in terms of .
Solution
Show the solution
The first sums are . These are the triangular numbers, so the rule is The rule is a guess from five cases, so it needs a proof.
Recurrence. Taking out the first term, for , since the remaining terms are the sum with all signs changed.
Induction. For , . Assume . Then This is the rule for .
Check
, and . A python3 run gave for and more.
Remarks
The recurrence says , with . The triangular numbers satisfy as well, and , so the two sequences are equal. This is the same proof in other words.
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.Ex7.statementaxioms: Classical.choice, Quot.sound, propext - Solution:
TAOCP.S1_2_1.Ex7.solvedaxioms: Classical.choice, Quot.sound, propext
The status is computed from the Lean build. The node of the map.
Something is wrong? Report it.