The claim
A proof shows a claim is true in every case. Our claim, called P(n): 1 + 2 + … + n = n(n+1)/2 for every whole number n ≥ 1. The formula row works out the right side for n = 1 to 5.
Now add up the left side: 1, then 1 + 2 = 3, then 6, 10 and 15. All five match the formula. But the claim is about every n, and there are infinitely many. Checking cases, however many, can never cover them all.
Base case
Proof by induction works like a row of dominoes. Show two things. Base case: the first domino falls. Inductive step: whenever one domino falls, it knocks over the next. Then every domino falls, however long the row.
Base case: check P(1). The left side is just 1. The right side is 1 × 2 / 2 = 1. Both sides are equal, so P(1) is true. The first lamp lights: the first domino falls.
Inductive step
Inductive step. Pick any whole number k ≥ 1 and assume P(k) is true: 1 + … + k = k(k+1)/2. This assumption is called the inductive hypothesis. Now ask: if P(k) is true, must P(k + 1) be true too?
The left side of P(k + 1) is 1 + … + k + (k + 1). Its first k terms are exactly the left side of P(k), so the hypothesis lets us swap them for k(k+1)/2. That leaves k(k+1)/2 + (k + 1).
Take out the common factor (k + 1): k(k+1)/2 + (k + 1) = (k + 1)(k/2 + 1) = (k + 1)(k + 2)/2. That is the formula with n = k + 1. So if P(k) is true, P(k + 1) is true.
Every n
Now put the two parts together. P(1) is true. The step with k = 1 gives P(2), with k = 2 it gives P(3), then P(4), P(5) and on forever. Every n is reached, so P(n) is true for all n ≥ 1.
Drop either part and the proof fails. The false claim n = n + 1 has a working step: if n = n + 1, then n + 1 = n + 2. But no case is true, so nothing starts the chain.
Try it in the Python prompt
;; step 1/9 · A claim for every n >>> def f(n): ... return n * (n + 1) // 2 ... >>> [f(n) for n in range(1, 6)] [1, 3, 6, 10, 15]
The dots in 1 + 2 + … + n mean "keep adding every whole number up to n". The inductive hypothesis is not circular: we assume P(k) and show P(k + 1), but we never assume P(k + 1) itself. The base case can start anywhere: to prove a claim for every n ≥ 4, check P(4) first and the chain runs from there.