Modular Arithmetic, Number Bases and Divisibility Tests | OCR A Level Further Maths notes
Free preview: Modular Arithmetic, Number Bases and Divisibility Tests
Congruence Modulo n
Year 1 (AS) for OCR A (8.02, in the AS Additional Pure list). Edexcel teaches it in Further Pure 2 (FP2 5.1 to 5.7), OCR B (MEI) in Further Pure with Technology (Y436); check your own specification for when.
Let's start with a clock. If it is 9 o'clock, then 5 hours later it is 2 o'clock, not 14 o'clock. The clock throws away whole 12s. Lots of questions only care about remainders: what day of the week it will be in 100 days, the last digit of a huge power, whether a number divides by 11. Modular arithmetic is the language for exactly that.
The definition
- Read it as "a is congruent to b modulo n".
- Same thing: a and b leave the same remainder when divided by n.
- n is the modulus. The possible remainders 0, 1, ..., n − 1 are the residues.

Following the diagram
- Arithmetic mod 7 uses a clock with 7 positions, 0 to 6.
- Counting up from 0, the numbers 3, 10, 17, 24, ... all land on 3, because each is 7 more than the last.
- Counting backwards, −4 and −11 also land on 3. So : check, .
- To reduce any number mod 7, find its position on this clock: the remainder.
The rules
If and , then:
- and
- for any positive integer k.
- Why the product rule works: write and . Then , which is bd plus a multiple of n.
💡 In plain words
- You can reduce numbers at any stage of an addition, subtraction, multiplication or power. Swap any number for a smaller one with the same remainder.
👀 Watch me do it: find without a calculator
| What I write | Why I do it |
|---|---|
| Reduce each factor first: subtract the biggest multiple of 7. | |
| Same for 45. | |
| Multiply the small numbers, then reduce again. | |
| Check: . | Reducing first gave the right remainder with tiny numbers. |
📝 Here's the trap: no dividing
- You cannot divide both sides of a congruence in general.
- , which is , but .
- Dividing by k is safe only when hcf(k, n) = 1. Otherwise use an inverse (next page) or divide the modulus too.

What the picture shows
- On the mod 4 clock, 6 and 2 land in the same place, so is true.
- Wrong: dividing by 2 but keeping mod 4 claims . On the clock, 3 and 1 land in different places, so it is false.
- Right: 2 and 4 share the factor 2, so halve the modulus as well. On the mod 2 clock, 3 and 1 land in the same place: .
- Only divide straight through when the number is coprime to n.
✏️ YOUR TURN 1
Try this first:
(a) Is ? (b) Give the residue of −20 mod 6. (c) Find by reducing first.
Answer:
- (a) , so yes.
- (b) Add 6 until you are in range: −20, −14, −8, −2, 4. So .
- (c) and , so the product is . Check: .
Remainders of Big Powers and Inverses Mod n
What is the remainder when is divided by 7? That number has 48 digits, so no calculator will help. But remainders of powers go round in circles, and that makes it easy.
Method: find a power that is ±1
- Work out small powers of the base, reducing each time, until you hit 1 (or −1). Why: once a power is 1, the pattern repeats from there.
- Write the big exponent in terms of that power, with a remainder. Why: it is the division algorithm on the exponent.
- Use (or ) to collapse it. Why: all the full cycles disappear.
Unlock the full note: start 7 days free.
Log in or subscribe to read the rest of this note. Members also get the AI tutor, practice quizzes, mock exams and flashcards for this topic.
All notes in Number Theory
- The Division Algorithm, Euclid's Algorithm and Bézout's Identity
- Modular Arithmetic, Number Bases and Divisibility Tests
- Solving Linear Congruences and Fermat's Little Theorem
What's inside for this topic
3 teacher notes, 86 practice questions, 40 flashcards, 2 quizzes.
Get the full notes, every practice question, flashcards, quizzes and mock papers.
Previous note: The Division Algorithm, Euclid's Algorithm and Bézout's Identity Next note: Solving Linear Congruences and Fermat's Little Theorem
Modular Arithmetic, Number Bases and Divisibility Tests on other exam boards
All OCR A Level Further Maths topics · A Level Further Maths