1.5 Proof by Exhaustion
AQA A-level Maths Year 1 (AS) · 7357 · Chapter 1: Proof and Mathematical Communication
What is in the full lesson (12 activities)
Every item below opens free in the course.
- Video: Proof by Exhaustion: Introduction
- Video: Proof by Exhaustion: example 1
- Video: Proof by Exhaustion: example 2
- Video: Proof by Exhaustion: example 3
- Video: Proof example 1
- Video: Proof example 2
- Notes: Lesson notes: Proof by Exhaustion
- Interactive lesson: Interactive lesson: Proof Methods Lab
- Interactive lesson: Interactive practice: Proof by Exhaustion Practice
- Practice questions: Practice questions (8 questions, 12 marks)
- Worksheet: Worksheet: Proof by Exhaustion
- Answers: Answers and mark scheme of the Worksheet: Proof by Exhaustion
A free AQA A-level Maths Year 1 lesson for AQA A-level Mathematics (7357) from OBA School: proving a result by checking every possible case (AQA 7357: A1). Watch the video, read the explanation and worked examples, then try the revision questions. You can work through the full lesson, with more videos, an interactive lesson, a practice quiz and printable worksheets, in our free online course.
What you will learn
- Prove that a number is prime by testing prime factors up to its square root
- Prove a statement about a small set of values by checking every case in an organised way
- Split all integers into a few cases (odd and even, remainders, last digits) and prove each case
- Choose between proof by exhaustion, proof by deduction and disproof by counter example
Key words
- Exhaustion: A proof that splits a statement into a finite number of cases and checks every one of them.
- Case: One of the possibilities. For example, every integer is in exactly one of the cases n = 2k or n = 2k + 1.
- Remainder: What is left over after division. 17 = 3 × 5 + 2, so 17 leaves remainder 2 when divided by 3.
- Prime: A whole number greater than 1 whose only factors are 1 and itself. 1 is not prime.
- Square root bound: If N is not prime, it has a prime factor no bigger than √N.
Checking every case in a finite set
Examples cannot prove a statement about infinitely many numbers. But when there are only a few possibilities, you can check them all, and then the statement is proved. Set out the cases in a table so that the reader can see none is missing, then write a conclusion.
Worked example: two-digit square numbers
Prove that no two-digit square number has digits that add up to 8.
The two-digit squares are 4² to 9²: 16, 25, 36, 49, 64, 81.
Digit sums: 1 + 6 = 7, 2 + 5 = 7, 3 + 6 = 9, 4 + 9 = 13, 6 + 4 = 10, 8 + 1 = 9.
None of the six digit sums is 8, and there are no other two-digit squares.
Answer: proved by checking all six cases
Key fact: A proof by exhaustion must (1) explain why the list of cases is complete, (2) check every case, and (3) finish with a conclusion.
Proving that a number is prime
To show N is prime, you need to rule out every possible factor. You do not need to test them all: if N = a × b with a ≤ b, then a × a ≤ N, so a ≤ √N. So N has a factor no bigger than √N, and that factor has a prime factor. Testing the primes up to √N is enough.
Worked example: a prime
Prove that 211 is prime.
√211 ≈ 14.5, so test the primes 2, 3, 5, 7, 11 and 13.
211 is odd; digit sum 4 is not a multiple of 3; it does not end in 0 or 5.
211 = 7 × 30 + 1; 211 = 11 × 19 + 2; 211 = 13 × 16 + 3.
Answer: no prime up to √211 divides 211, so 211 is prime
Worked example: why you must go all the way
Is 221 prime?
√221 ≈ 14.9. 221 is not divisible by 2, 3, 5, 7 or 11, but 221 = 13 × 17.
Answer: 221 is not prime: stopping at 11 would have given the wrong answer
Splitting the integers into cases
There are infinitely many integers, but they fall into a small number of types. Every integer is even (2k) or odd (2k + 1). On division by 3, every integer is 3k, 3k + 1 or 3k + 2. Prove the statement for each type using algebra: that covers every integer.
Worked example: odd and even cases
Prove that n² + 3n is even for every integer n.
Case 1, n even, n = 2k: 4k² + 6k = 2(2k² + 3k), which is even.
Case 2, n odd, n = 2k + 1: (4k² + 4k + 1) + (6k + 3) = 4k² + 10k + 4 = 2(2k² + 5k + 2), even.
Answer: every integer is odd or even, so n² + 3n is always even
Worked example: three cases
Prove that every cube number is either a multiple of 9, or one more or one less than a multiple of 9.
n = 3k: n³ = 27k³ = 9(3k³), a multiple of 9.
n = 3k + 1: n³ = 27k³ + 27k² + 9k + 1 = 9(3k³ + 3k² + k) + 1.
n = 3k + 2: n³ = 27k³ + 54k² + 36k + 8 = 9(3k³ + 6k² + 4k + 1) − 1.
Answer: the three cases cover every integer, so the result is proved
Exam tip: The cases must cover every possibility, with no gaps. Say so in your conclusion: "every integer is of one of these forms".
Last digits
The last digit of a product depends only on the last digits of the numbers being multiplied. So the last digit of n² depends only on the last digit of n, which gives just ten cases to check.
Worked example: squares never end in 7
Prove that no square number ends in the digit 7.
Last digit of n: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9.
Last digit of the square: 0, 1, 4, 9, 6, 5, 6, 9, 4, 1.
Answer: 7 never appears, so no square number ends in 7
Choosing a method
- Counter example; Use it when you think a "for all" statement is false; Example "n² + n + 11 is always prime": n = 10
- Exhaustion; Use it when there are few cases, or the integers split into a few types; Example "no square ends in 7"
- Deduction; Use it when a general algebraic argument covers everything at once; Example "the sum of two odd numbers is even"
Worked example: prove or disprove
For integers 1 ≤ n ≤ 5, is n² + n + 1 prime?
n = 1, 2, 3, 4, 5 give 3, 7, 13, 21, 31.
21 = 3 × 7 is not prime.
Answer: the statement is false; n = 4 is a counter example
Common mistakes
- Checking some cases but not all, and calling it a proof. Every case must be checked.
- Missing a case, for example only considering even n, or forgetting negative numbers when the statement is about all integers.
- Stopping before √N when testing for primes. 221 = 13 × 17 has no factor below 13.
- Trying to use exhaustion for infinitely many separate values. Group them into a few types instead.
- Leaving out the conclusion. End with a sentence that says what has been proved.
Revision questions
Try these, then check your answers below each one.
Question 1. To prove that 113 is prime by exhaustion, you test whether it is divisible by each prime number up to √113. How many primes must you test?
Answer: 4
Working: √113 ≈ 10.6, so test 2, 3, 5 and 7: four primes. None divides 113, so 113 is prime.
Question 2. True or false: proof by exhaustion can prove a statement about every integer, if the integers are split into a small number of cases that cover them all.
Answer: True
Working: "Exhaustion" means every possibility is checked. Infinitely many integers can still be covered by a finite set of cases, for example n = 2k and n = 2k + 1.
Question 3. Which of these numbers is NOT prime? (Choose from: 91; 89; 97; 83.)
Answer: 91
Working: 91 = 7 × 13. For 83, 89 and 97 you only need to test the primes 2, 3, 5 and 7 (since 11² = 121), and none of them divides.
Related lessons
- Previous lesson: 1.4 Proof by Deduction
- Next lesson: 2.1 Using the Laws of Indices
- In this chapter: 1.1 Mathematical Structures and Arguments
- In this chapter: 1.2 Inequality Notation
- In this chapter: 1.3 Disproof by Counter Example
Continue in the full course
This lesson is section 1.5 of our free AQA A-level Maths Year 1 (AS) course. In the full course you get every video for this section, an animated interactive lesson, a self-marking practice quiz, a printable worksheet with a mark scheme, an end-of-chapter test and your progress saved.
Continue lesson 1.5 in the free course →