A-level Mathematics

1.3 Proof by exhaustion — Learn

Prerequisites: divisibility and remainders; prime numbers; factorising small whole numbers; the meaning of "for all" from 1.1.

By the end of this section you can: prove a statement about a finite set by checking every case; decide whether a list of cases is exhaustive; explain why checking finitely many cases cannot prove a claim about every whole number; and use remainders to turn an infinite problem into a finite one.

1. What exhaustion is

Proof by exhaustion splits a statement into cases and checks every one of them. When the list of cases is complete, and every case is correct, the statement is proved. Nothing is left to test.

The two jobs are:

  1. list the cases so that nothing is missed;
  2. check each case, usually with arithmetic.

Example 1. Prove that every whole number from 11 to 66 divides 6060.

Write the six multiplications:

60=1×60,60=2×30,60=3×20,60=4×15,60=5×12,60=6×10.\begin{aligned} 60 &= 1 \times 60, & 60 &= 2 \times 30, & 60 &= 3 \times 20, \\ 60 &= 4 \times 15, & 60 &= 5 \times 12, & 60 &= 6 \times 10. \end{aligned}

Each of 11, 22, 33, 44, 55 and 66 divides 6060 with no remainder. The list covers every whole number from 11 to 66, so the cases are exhaustive and the statement is proved.

2. A real use: testing for primes

To decide whether a whole number NN is prime, you only need to test the prime numbers whose squares are at most NN. Any other factor would pair with a smaller one, so it can give no new information.

Example 2. Prove that 9797 is prime.

The primes with p2≤97p^2 \leq 97 are 22, 33, 55 and 77, because 72=49≤977^2 = 49 \leq 97 and 112=121>9711^2 = 121 > 97.

97÷2=48 remainder 1,97÷3=32 remainder 1,97 \div 2 = 48 \text{ remainder } 1, \qquad 97 \div 3 = 32 \text{ remainder } 1, 97÷5=19 remainder 2,97÷7=13 remainder 6.97 \div 5 = 19 \text{ remainder } 2, \qquad 97 \div 7 = 13 \text{ remainder } 6.

None divides 9797, and the four cases cover every possible prime factor, so 9797 is prime. The set of cases is finite even though 9797 is large: the square root keeps the work small.

3. Turning an infinite problem into a finite one

Every whole number leaves remainder 00, 11 or 22 on division by 33. Those three cases cover infinitely many numbers, so checking them once proves the statement for every whole number.

Example 3. Prove that n2+1n^2 + 1 is never a multiple of 33, for every whole number nn.

Write nn by its remainder on division by 33, and square it.

n=3kgivesn2+1=9k2+1,n=3k+1givesn2+1=9k2+6k+2,n=3k+2givesn2+1=9k2+12k+5.\begin{aligned} n = 3k &\quad\text{gives}\quad n^2 + 1 = 9k^2 + 1, \\ n = 3k + 1 &\quad\text{gives}\quad n^2 + 1 = 9k^2 + 6k + 2, \\ n = 3k + 2 &\quad\text{gives}\quad n^2 + 1 = 9k^2 + 12k + 5. \end{aligned}

The remainders on division by 33 are 11, 22 and 22. None is 00, so n2+1n^2 + 1 is never a multiple of 33. The three cases cover every whole number, so this is a complete proof.

4. Try it: test the claim

Return to Claim B from the chapter problem: for every whole number nn, the value of n2+n+41n^2 + n + 41 is prime.

Predict first. The claim is correct for n=0,1,2n = 0, 1, 2 and 33. Up to which value of nn do you expect it to keep working? Write your prediction down before you touch the slider.

Test. Move the slider through the values of nn. The panel reports the value of n2+n+41n^2 + n + 41 and whether it is prime.

Explain. At which value of nn does the claim first fail? What does that value have to do with 4141? Write two sentences. The check for n=39n = 39 is correct, so what exactly is missing from a proof that stops at n=39n = 39?

Watch out. There are two ways an exhaustion proof can go wrong.

A missing case. If the list of cases does not cover the whole domain, the proof has a hole. "Every prime is odd" fails at the one prime that is left out: 22.

Checking forever. For a claim about every whole number, no finite list of checked values is a proof. The table of values for n=0n = 0 to 3939 is strong evidence, and the first value after the table, n=40n = 40, breaks the claim.

Re-check: count the cases in your list, then ask whether any number is left out. If the domain is infinite, a finite list can never be exhaustive.

Progress check

Claim B has now been checked for a long run of values.

  1. Why is a check of n=0n = 0 to 3939 not a proof of Claim B?
  2. Example 3 checked only three cases but proved a statement about every whole number. Explain the difference.
  3. What kind of statement could exhaustion prove in full: "for all whole numbers nn", or "for every whole number nn from 11 to 5050"? Give a reason.

You should now be able to

Settings

Colour scheme

Applies to every book you read here.

Reading theme

Applies to every book you read here.