Skip to main content
Examonaut

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 (2k2k or 2k+12k + 1). Every integer leaves remainder 0, 1 or 2 when divided by 3, so it is 3k3k, 3k+13k + 1 or 3k+23k + 2, as the number line below shows. If a statement involves "multiple of 3", splitting into those three types is usually the right move.

−1012345678910every integer is exactly one of three types3k3k + 13k + 2prove each type separately: that covers all integers

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

  1. Step 1: Choose cases that clearly cover every possibility, and say so ("every integer is even or odd").
  2. Step 2: Write each case in algebra (or list the members of a small set).
  3. Step 3: Prove the statement in each case separately, showing the working.
  4. Step 4: Conclude: "the statement is true in every case, so it is true for all…"

Worked example

Even and odd casesbasic

Prove that n2+nn^2 + n is even for every integer nn.

Show solution
  1. Every integer is either even or odd, so two cases cover everything.
  2. nn even: n=2kn = 2k. Then n2+n=4k2+2k=2(2k2+k)n^2 + n = 4k^2 + 2k = 2(2k^2 + k), which is even.
  3. nn odd: n=2k+1n = 2k + 1. Then n2+n=4k2+4k+1+2k+1=2(2k2+3k+1)n^2 + n = 4k^2 + 4k + 1 + 2k + 1 = 2(2k^2 + 3k + 1), which is even.
  4. In both cases n2+nn^2 + n is even, so it is even for every integer nn.

(A neater deduction exists: n2+n=n(n+1)n^2 + n = n(n + 1), 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 solution
  1. Every integer is 3k3k, 3k+13k + 1 or 3k+23k + 2 for some integer kk, so three cases cover everything.
  2. n=3kn = 3k: n2=9k2=3(3k2)n^2 = 9k^2 = 3(3k^2), a multiple of 3.
  3. n=3k+1n = 3k + 1: n2=9k2+6k+1=3(3k2+2k)+1n^2 = 9k^2 + 6k + 1 = 3(3k^2 + 2k) + 1, one more than a multiple of 3.
  4. n=3k+2n = 3k + 2: n2=9k2+12k+4=3(3k2+4k+1)+1n^2 = 9k^2 + 12k + 4 = 3(3k^2 + 4k + 1) + 1, one more than a multiple of 3. Notice we wrote 44 as 3+13 + 1 to show the form clearly.
  5. In every case n2n^2 is 3m3m or 3m+13m + 1 for an integer mm, 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

  1. 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).
  2. Step 2: State the counterexample clearly.
  3. Step 3: Show the working proving that it breaks the statement.
  4. Step 4: Say explicitly: "so the statement is false."

Worked example

Counterexamples

a) Show that "if a2>b2a^2 > b^2 then a>ba > b" is false.

Show solution
  1. Negative numbers are a likely failure, because squaring hides the sign. Try a=−3a = -3, b=1b = 1.
  2. a2=9>1=b2a^2 = 9 > 1 = b^2, but a=−3<1=ba = -3 < 1 = b.
  3. So a=−3a = -3, b=1b = 1 is a counterexample, and the statement is false.

b) Show that "2n+12^n + 1 is prime for every positive integer nn" is false.

  1. n=1,2n = 1, 2 give 3 and 5, both prime; n=3n = 3 gives 9.
  2. 9=3×39 = 3 \times 3 is not prime.
  3. So n=3n = 3 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.

Do you believe it?No: find ONEcounterexampleFew cases?Check each:exhaustionCan you buildit from facts?deductionSays “no…”, “not…”,“irrational”, “infinitelymany”? contradictionTo prove ittrue, use one ofthe other threemethodsdirect route hard?Many proofs mix methods, e.g. contradiction + cases

Practise this topic

Both are part of Premium.