Exercise · Volume 1 · 1.2.1-8
Exercise 1.2.1-8
proved in Lean solution written
| Rating | 25 |
|---|---|
| Markers | recommended |
| Kind | K1, prove: show that a stated fact is true from the written solution |
| Section | Section 1.2.1 of Volume 1. Companion chapter: Mathematical induction |
The task
(a) Show by induction that the cube is the sum of the consecutive odd numbers that start at . (b) Use this to show that .
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
For (a), write the row for as with . Compare row with row term by term.
Hint 2
For (b), look at where row ends and row begins. Put all rows in a line.
Hint 3
The sum of the first odd numbers is (eq. (2) of the text), and the rows have numbers.
Solution
Show the solution
(a) Let . The claim is . For , . Assume . Row has terms, and its first term is . The terms of row are for . Compare the term with index for with the same term of row : So the first terms of row add up to . The last term of row has and equals . Therefore
(b) The last term of row is and the first term of row is , which is the next odd number. The first row is . By induction on , the rows written one after the other are the first odd numbers . By eq. (2) of the text, their sum is . By (a), the sum of row is . So
Check
Row is . For : , and . The rows to are , the first ten odd numbers, whose sum is . A python3 run confirmed (a) for .
Remarks
The identity of (b) also follows by induction from , since . Nicomachus lived about A.D. 100.
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. Lean states the parts one by one.
- Problem (a):
TAOCP.S1_2_1.Ex8.a.statementaxioms: Classical.choice, Quot.sound, propext - Solution (a):
TAOCP.S1_2_1.Ex8.a.solvedaxioms: Classical.choice, Quot.sound, propext - Problem (b):
TAOCP.S1_2_1.Ex8.b.statementaxioms: Classical.choice, Quot.sound, propext - Solution (b):
TAOCP.S1_2_1.Ex8.b.solvedaxioms: Classical.choice, Quot.sound, propext
The status is computed from the Lean build. The node of the map.
Something is wrong? Report it.