Proof by Exhaustion

Cover every case, and leave no case out.

A split that covers everything

The claim: n² + n is even for every whole number n. There are infinitely many whole numbers, so checking them one at a time never finishes. Proof by exhaustion splits them into a finite list of cases and proves the claim in each case.

The split has to cover everything. Dividing a whole number by 2 leaves a remainder of 0 or 1, so every whole number is even or odd, and there is no third possibility. Two cases, n even and n odd, cover all of them.

Case 1: n is even

If n is even, then n = 2k for some whole number k. So n² + n = (2k)² + 2k = 4k² + 2k = 2(2k² + k). Since 2k² + k is a whole number, n² + n is 2 times a whole number, which makes it even.

Case 2: n is odd

If n is odd, then n = 2k + 1 for some whole number k, and n² = (2k + 1)² = 4k² + 4k + 1. Adding n gives n² + n = 4k² + 4k + 1 + 2k + 1 = 4k² + 6k + 2 = 2(2k² + 3k + 1). Again this is 2 times a whole number, so it is even.

The odd case needs its own algebra. It lands on the same conclusion as the even case by a different route, and a proof that called it “similar” without doing it would have a gap.

Why two cases are enough

Every whole number is in case 1 or case 2, and the claim holds in each case, so it holds for every whole number. The coverage is what makes this a proof: two cases that left some number out would prove the claim only for the numbers they covered.

The same fact can be seen another way. n² + n = n(n + 1), the product of two consecutive whole numbers, and of any two consecutive whole numbers one is even. That argument hides the same two cases: either n is even, or n + 1 is.

n isn² + nn = 0even0n = 1odd2n = 2even6n = 3odd12n = 4even20n = 5odd30n = 6even42n = 7odd56

n from 0 to 7. Even and odd n take turns, and n² + n is even in every row. The rows are examples; the two cases above are the proof.

Splits that leave a case out

“n is prime or composite” looks like a split of the whole numbers, but 1 is neither prime nor composite, and neither is 0. “n is positive or negative” misses 0. A proof built on either split has a hole exactly where the missing number is.

Splitting by remainder is the safe way to build cases. Dividing by 3 leaves a remainder of 0, 1 or 2, and every whole number has exactly one of them, so the three cases n = 3k, n = 3k + 1 and n = 3k + 2 cover everything. Treating only the first two leaves out every number of the form 3k + 2, such as 2, 5 and 8.

Three cases: squares divided by 3

The claim: the square of a whole number leaves a remainder of 0 or 1 when divided by 3, never 2. Split n by its own remainder on division by 3.

If n = 3k, then n² = 9k² = 3(3k²), so the remainder is 0.

If n = 3k + 1, then n² = 9k² + 6k + 1 = 3(3k² + 2k) + 1, so the remainder is 1.

If n = 3k + 2, then n² = 9k² + 12k + 4 = 3(3k² + 4k + 1) + 1, so the remainder is 1.

The three cases cover every whole number, and none of them gives a remainder of 2, so no square leaves a remainder of 2.

n²remaindern = 000n = 111n = 241n = 390n = 4161n = 5251n = 6360n = 7491n = 8641

n from 0 to 8, with the remainder each square leaves on division by 3. The remainders run 0, 1, 1 and repeat, one for each of the three cases, and 2 never appears.

The usual mistakes

Checking values instead of proving cases. n = 0 to 7 all work, and that proves nothing about n = 8. Two cases, each with its algebra, cover every n.

Leaving a case out. A split by the remainder on division by 3 needs all three remainders, not two.

Using a split that misses numbers. Prime or composite misses 0 and 1; positive or negative misses 0.

Ride tickets in strips of 3 and 5

In the application below, a club buys ride tickets only in strips of 3 and strips of 5. Every group size from 8 up is shown to be possible by exhaustion over the remainder on division by 3: settle the smallest size in each of the three cases, then add strips of 3. The sizes below 8 are then checked one at a time.

Worked example: Ride Tickets Sold Only in Strips of 3 and 5, and the Group Sizes a Club Can Buy Exactly

Question A fair sells ride tickets only in strips of 3 and strips of 5. A youth club brings n members, each of whom takes exactly one ride, and the club wants to buy exactly n tickets so that none is wasted. (a) Prove, by exhaustion over the remainder when n is divided by 3, that the club can buy exactly n tickets for every n ≥ 8. How does the club buy exactly 43 tickets with the fewest strips? (b) List every group size n ≥ 1 for which the club cannot buy exactly n tickets, and give the largest.

  1. 1.Every n ≥ 8 leaves a remainder of 0, 1 or 2 when divided by 3, so these three cases cover every group size. Find the smallest size from 8 up in each case: 9 = 3 + 3 + 3 has remainder 0, 10 = 5 + 5 has remainder 1, and 8 = 5 + 3 has remainder 2.

    remainder 0remainder 1remainder 29 = 3+3+310 = 5+58 = 5+3
    remainder 0remainder 1remainder 29 = 3+3+310 = 5+58 = 5+3
    Every n ≥ 8 has remainder 0, 1 or 2 on division by 3, and the smallest size of each case can be bought.
  2. 2.Every larger size in the same case is that smallest size plus some strips of 3. For example, a size n = 3q + 1 with n ≥ 10 is 5 + 5 with q − 3 strips of 3 added. So all three cases are covered for every n ≥ 8, which completes the proof.

    remainder 0remainder 1remainder 29 = 3+3+310 = 5+58 = 5+312 = 9+313 = 10+311 = 8+315 = 12+316 = 13+314 = 11+3Each column goes on by adding a strip of 3
    remainder 0remainder 1remainder 29 = 3+3+310 = 5+58 = 5+312 = 9+313 = 10+311 = 8+315 = 12+316 = 13+314 = 11+3Each column goes on by adding a strip of 3
    Adding a strip of 3 keeps the remainder, so every size in each column can be bought.
  3. 3.(a) For the fewest strips, use as many strips of 5 as possible. Nine strips of 5 would be 45 tickets, too many, and eight leave 43 − 40 = 3, one strip of 3. The club buys 8 strips of 5 and 1 strip of 3, which is 9 strips.

    remainder 0remainder 1remainder 29 = 3+3+310 = 5+58 = 5+312 = 9+313 = 10+311 = 8+315 = 12+316 = 13+314 = 11+3Each column goes on by adding a strip of 343 = 8 strips of 5 + 1 strip of 3: 9 strips
    remainder 0remainder 1remainder 29 = 3+3+310 = 5+58 = 5+312 = 9+313 = 10+311 = 8+315 = 12+316 = 13+314 = 11+3Each column goes on by adding a strip of 343 = 8 strips of 5 + 1 strip of 3: 9 strips
    (a) 43 = 8 × 5 + 3: 8 strips of 5 and 1 strip of 3, which is 9 strips.
  4. 4.Test each size below 8. Sizes 3, 5 and 6 = 3 + 3 can be bought. Sizes 1 and 2 are smaller than either strip, and 4 is neither 3 nor 5 and too small for two strips. Taking a strip of 5 from 7 leaves 2, and taking strips of 3 leaves 4 or 1, none of which can be bought, so 7 cannot be bought either.

    remainder 0remainder 1remainder 29 = 3+3+310 = 5+58 = 5+312 = 9+313 = 10+311 = 8+315 = 12+316 = 13+314 = 11+3Each column goes on by adding a strip of 343 = 8 strips of 5 + 1 strip of 3: 9 stripsCan buy: 3, 5, 6Cannot buy: 1, 2, 4, 7
    remainder 0remainder 1remainder 29 = 3+3+310 = 5+58 = 5+312 = 9+313 = 10+311 = 8+315 = 12+316 = 13+314 = 11+3Each column goes on by adding a strip of 343 = 8 strips of 5 + 1 strip of 3: 9 stripsCan buy: 3, 5, 6Cannot buy: 1, 2, 4, 7
    Below 8, the sizes 1, 2, 4 and 7 cannot be made from 3s and 5s.
  5. 5.(b) The club cannot buy exactly 1, 2, 4 or 7 tickets, and the largest of these is 7. Check: the proof in (a) covers every size from 8 up, so no larger size is missing from the list.

    remainder 0remainder 1remainder 29 = 3+3+310 = 5+58 = 5+312 = 9+313 = 10+311 = 8+315 = 12+316 = 13+314 = 11+3Each column goes on by adding a strip of 343 = 8 strips of 5 + 1 strip of 3: 9 stripsCan buy: 3, 5, 6Cannot buy: 1, 2, 4, 7The largest that cannot be bought: 7
    remainder 0remainder 1remainder 29 = 3+3+310 = 5+58 = 5+312 = 9+313 = 10+311 = 8+315 = 12+316 = 13+314 = 11+3Each column goes on by adding a strip of 343 = 8 strips of 5 + 1 strip of 3: 9 stripsCan buy: 3, 5, 6Cannot buy: 1, 2, 4, 7The largest that cannot be bought: 7
    (b) The club cannot buy exactly 1, 2, 4 or 7 tickets; the largest is 7.

Answer: (a) 8 strips of 5 and 1 strip of 3, which is 9 strips; (b) 1, 2, 4 and 7; the largest is 7

Common mistakes

  • Checking sizes up to 20 or so and stopping. Examples cannot cover every n; the three remainders do, because a strip of 3 added to any size keeps its remainder.
  • Buying 43 tickets as 2 strips of 5 and 11 strips of 3. That is exactly 43 tickets but 13 strips; each time three strips of 5 replace five strips of 3 the number of strips falls by 2, so the most strips of 5 gives the fewest strips.

More proof techniques problems, worked step by step →

Practice Proof by Exhaustion in the app