Category: Logic and Proof Level: 201
1 + 2 + … + n = n(n + 1)/2 for every n ≥ 1
Induction proves a statement for every whole number in two moves: knock over the first domino (the base case), and show each domino knocks over the next (the inductive step).
Each domino is one statement P(n): the sum 1 + 2 + … + n equals n(n + 1)/2. Infinitely many dominoes, infinitely many claims, and no time to check them one by one.
P(n): 1 + 2 + … + n = n(n + 1)/2
Check P(1) by hand. The sum of the first one number is 1, and 1·2/2 is also 1, so the first domino falls.
P(1): 1 = 1·2/2
Assume P(k) is true for some k. Add the next number k + 1 to both sides and simplify. The result is P(k + 1), so each falling domino knocks over the next.
k(k + 1)/2 + (k + 1) = (k + 1)(k + 2)/2
The sum up to 4 is a staircase of 10 blue squares. Adding a column of 5 orange squares gives the staircase for 5, which matches the formula.
10 + 5 = 15 = 5·6/2
The first domino falls, and each one knocks over the next. Together these two facts topple the whole infinite row, so P(n) holds for every n.
1 + 2 + … + n = n(n + 1)/2
cd svg-generator python3 -m svgmath render proof-by-induction --out /tmp/proof-by-induction
Source: svgmath/diagrams/proofs.py