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

a=qb+r,0⩽r<b

💡 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

  1. 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".
  2. That multiple is qb, so read off q. Why: q counts how many b's.
  3. Subtract: r = a − qb. Why: r is what is left.
  4. Check 0⩽r<b. 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 writeWhy I do it
15⩽17<20The multiples of 5 nearest 17 are 15 and 20. The one at or below 17 is 15.
17=3×5+2q = 3, r = 2. Check: 0 ≤ 2 < 5.
−20⩽−17<−15For −17, the multiple below is −20 (further left on the number line).
−17=(−4)×5+3q = −4, r = 3.
Not −17=(−3)×5−2.That remainder −2 is negative, which the rule forbids.

Diagram: The squares are the multiples of 5 next to −17: −20 and −15.

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 −17=(−3)×5−2. 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: −17=(−4)×5+3.
  • So r = 3, which satisfies 0⩽r<5.
  • We say b divides a, written b∣a, 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) 50=7×7+1: q = 7, r = 1.
  • (b) The multiple of 7 below −50 is −56: −50=(−8)×7+6, so q = −8, r = 6.
  • (c) The multiple of 4 below −23 is −24: −23=(−6)×4+1, 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

If a=qb+r, then hcf(a,b)=hcf(b,r)

  • Why? Any number dividing a and b also divides r=a−qb. Any number dividing b and r also divides a=qb+r.
  • 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.

Log in · Subscribe · Start free trial

All notes in Number Theory

  1. The Division Algorithm, Euclid's Algorithm and Bézout's Identity
  2. Modular Arithmetic, Number Bases and Divisibility Tests
  3. Solving Linear Congruences and Fermat's Little Theorem
  4. 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.

Start your free 7-day trial

Questions? Chat with us on WhatsApp · Try one live lesson

Next note: Modular Arithmetic, Number Bases and Divisibility Tests

All Edexcel A Level Further Maths topics · A Level Further Maths