The Division Algorithm, Euclid's Algorithm and Bézout's Identity | Edexcel A Level Further Maths notes
Free preview: The Division Algorithm, Euclid's Algorithm and Bézout's Identity
The Division Algorithm
Year 1 (AS) for OCR A (8.02, in the AS Additional Pure list), except Euclid's lemma (page 4), which OCR A names as A level content. Edexcel teaches number theory in Further Pure 2 (FP2 5.1 to 5.7), and OCR B (MEI) in Further Pure with Technology (Y436); check your own specification for when.
Let's start with ordinary division, the kind you did before you met decimals: "17 ÷ 5 = 3 remainder 2". Share 17 sweets between 5 people: everyone gets 3, and 2 are left over. That simple idea is the foundation of all of number theory.
The division algorithm
For any integer a and any positive integer b, there are unique integers q (the quotient) and r (the remainder) with
💡 In plain words
- Take away as many whole b's as you can; what is left (less than b) is the remainder.
- The remainder is never negative and always smaller than b.
- "Unique" means there is only one correct pair q, r for each a and b.
How to find q and r
- Find the largest multiple of b that is less than or equal to a. Why: that is "as many whole b's as you can".
- That multiple is qb, so read off q. Why: q counts how many b's.
- Subtract: r = a − qb. Why: r is what is left.
- Check . Why: if r is negative or too big, you picked the wrong multiple.
👀 Watch me do it: divide 17 and −17 by 5
| What I write | Why I do it |
|---|---|
| The multiples of 5 nearest 17 are 15 and 20. The one at or below 17 is 15. | |
| q = 3, r = 2. Check: 0 ≤ 2 < 5. | |
| For −17, the multiple below is −20 (further left on the number line). | |
| q = −4, r = 3. | |
| Not . | That remainder −2 is negative, which the rule forbids. |

What the picture shows
- The squares are the multiples of 5 next to −17: −20 and −15.
- Wrong: starting from −15 and going down 2 gives . The remainder −2 is negative, which the rule does not allow.
- Right: always start from the multiple of 5 below a, here −20, and count up: .
- So r = 3, which satisfies .
- We say b divides a, written , when r = 0.
✏️ YOUR TURN 1
Try this first:
Find q and r in the division algorithm for (a) a = 50, b = 7; (b) a = −50, b = 7; (c) a = −23, b = 4.
Answer:
- (a) : q = 7, r = 1.
- (b) The multiple of 7 below −50 is −56: , so q = −8, r = 6.
- (c) The multiple of 4 below −23 is −24: , so q = −6, r = 1.
Highest Common Factors and Euclid's Algorithm
Here's a question: what is the highest common factor of 1071 and 462? Factorising both is slow and error-prone. Over 2000 years ago Euclid found a much faster way that uses nothing but division with remainders.
- The highest common factor hcf(a, b) (also called gcd, greatest common divisor) is the largest integer that divides both.
- Two numbers are coprime if their hcf is 1. For example 8 and 15 are coprime.
- For big numbers, factorising is slow. Euclid's algorithm is fast.
The key fact
- Why? Any number dividing a and b also divides . Any number dividing b and r also divides .
- So the pairs (a, b) and (b, r) have exactly the same common factors, hence the same highest one.
- The point: (b, r) are smaller numbers than (a, b), so the problem gets easier each time.
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
- Counting Principles: Arrangements and Selections with Restrictions
What's inside for this topic
4 teacher notes, 89 practice questions, 52 flashcards, 2 quizzes.
Get the full notes, every practice question, flashcards, quizzes and mock papers.
Next note: Modular Arithmetic, Number Bases and Divisibility Tests
All Edexcel A Level Further Maths topics · A Level Further Maths