Work modulo a small number
To show an equation has no whole-number solutions, look only at remainders. Squares, for instance, leave remainder 0 or 1 on division by 4.
Level: STEP 2. Uses A-level Mathematics only.
The idea
Questions about whole numbers often ask you to show that something is impossible: an equation has no integer solutions, or a number is never divisible by 7. Checking cases cannot prove that, because there are infinitely many. Remainders can. If you divide by a small number , there are only possible remainders, so you can check every case.
Write when and leave the same remainder on division by . Remainders behave well under addition and multiplication: to find the remainder of a sum or product, you may replace each number by its remainder first.
Squares have few remainders
Every integer is even or odd. If then , and if then
So every square leaves remainder 0 or 1 on division by 4. In the same way, every square leaves remainder 0 or 1 on division by 3. These two facts settle a surprising number of STEP questions.
Example 1: a sum of two squares
Show that there are no integers and with
Each of and leaves remainder 0 or 1 on division by 4, so their sum leaves remainder 0, 1 or 2. But leaves remainder 3. So no such integers exist. The same argument shows that no number of the form is a sum of two squares.
Example 2: a remainder that never appears
Show that is never divisible by 7, for any positive integer .
Since , the remainders of the powers of 2 repeat with period 3:
So leaves remainder 3, 5 or 2, and never 0. The key step was finding a power congruent to 1, after which everything repeats.
Example 3: divisibility for every n
Show that is divisible by 6 for every integer .
Factorise: , a product of three consecutive integers. One of any two consecutive integers is even, and one of any three consecutive integers is a multiple of 3. So the product is divisible by 2 and by 3, and since 2 and 3 have no common factor, by 6.
When to reach for it
- "Show that there are no integers ..." Choose a modulus where one side has few possible remainders: 4 or 8 for squares, 9 for cubes.
- Divisibility statements that must hold for every : check each remainder of , or find a power that is congruent to 1.
- If one modulus fails to give a contradiction, try another. Part of the skill is choosing the right one.
Try this
Suppose that , and are positive integers with
Show that at least one of and is divisible by 3.
Hint
What are the possible remainders of a square on division by 3? What happens to if neither nor is a multiple of 3?
Solution
If is not a multiple of 3, then or , and in both cases (since ). So if neither nor were a multiple of 3, we would have
But every square leaves remainder 0 or 1 on division by 3, so cannot leave remainder 2. This contradiction shows that at least one of and is divisible by 3. (For example, in it is .)
Want more like this? STEP 2 Pure: Practice Paper 1 teaches ideas of this kind in depth, with exercises and a full STEP question. The STEP Starter Pack has all four modules and three practice papers. Or start free with the STEP sample question.