Topic 1 · Lesson 3 of 6
Exhaustion and counterexamples
Proof by exhaustion
Sometimes there is no single argument that works for every number, but the numbers fall into a few types, and each type can be handled on its own. Proof by exhaustion splits the problem into a finite number of cases, proves the statement in each case, and so covers everything. The cases must be exhaustive: together they include every possibility.
The classic split is by remainder. Every integer is even or odd ( or ). Every integer leaves remainder 0, 1 or 2 when divided by 3, so it is , or , as the number line below shows. If a statement involves "multiple of 3", splitting into those three types is usually the right move.
Exhaustion can also mean checking every member of a small finite set, for example "every prime between 2 and 30", where you simply test each one.
How to prove by exhaustion
- Step 1: Choose cases that clearly cover every possibility, and say so ("every integer is even or odd").
- Step 2: Write each case in algebra (or list the members of a small set).
- Step 3: Prove the statement in each case separately, showing the working.
- Step 4: Conclude: "the statement is true in every case, so it is true for all…"
Worked example
Even and odd casesbasic
Prove that is even for every integer .
Show solutionHide solution
- Every integer is either even or odd, so two cases cover everything.
- even: . Then , which is even.
- odd: . Then , which is even.
- In both cases is even, so it is even for every integer .
(A neater deduction exists: , the product of consecutive integers, and one of any two consecutive integers is even. Both proofs earn full marks unless the question names a method.)
Worked example
Squares and multiples of 3exam standard
Prove that the square of any integer is either a multiple of 3 or one more than a multiple of 3.
Show solutionHide solution
- Every integer is , or for some integer , so three cases cover everything.
- : , a multiple of 3.
- : , one more than a multiple of 3.
- : , one more than a multiple of 3. Notice we wrote as to show the form clearly.
- In every case is or for an integer , so no square is two more than a multiple of 3.
This result is a useful tool: it immediately tells you, for example, that 3 002 is not a square number, since it is 2 more than a multiple of 3.
Disproof by counterexample
To disprove a statement that claims something is true for all cases, you need only one case where it fails. That case is a counterexample. It is the quickest proof there is, but it must be checked and explained.
How to disprove with a counterexample
- Step 1: Look for likely failures: zero, negative numbers, fractions, 1, 2, and numbers where two conditions clash (a square, a multiple of the number in the formula).
- Step 2: State the counterexample clearly.
- Step 3: Show the working proving that it breaks the statement.
- Step 4: Say explicitly: "so the statement is false."
Worked example
Counterexamples
a) Show that "if then " is false.
Show solutionHide solution
- Negative numbers are a likely failure, because squaring hides the sign. Try , .
- , but .
- So , is a counterexample, and the statement is false.
b) Show that " is prime for every positive integer " is false.
- give 3 and 5, both prime; gives 9.
- is not prime.
- So is a counterexample and the statement is false.
Notice that in part b) the true examples (3 and 5) prove nothing; the one failure settles it.
Choosing a method
Before you write anything, decide what kind of statement you have. The chart below is a good starting routine. If the question names a method ("prove by exhaustion"), you must use that method.
Practise this topic
Both are part of Premium.