All revision notes topics

Division theorem, Euclidean algorithm and Bezout's identityEdexcel A-Level Further Maths: Revision notes

Section 1

The division theorem

For integers aa and bb with b>0b>0, there are unique integers qq (the quotient) and rr (the remainder) with a=bq+r,0≤r<b.a=bq+r,\qquad 0\leq r<b. Example: 252=1×198+54252=1\times198+54, so q=1q=1 and r=54r=54. In congruence notation, a≡r(modb)a\equiv r\pmod b, because aa and rr leave the same remainder on division by bb. The theorem is the engine of the Euclidean algorithm, and r=0r=0 exactly when bb divides aa.

Key termsquotientremainder
Common mistake

Allowing a negative remainder or one as large as bb. The remainder must satisfy 0≤r<b0\leq r<b.

Section 2

The Euclidean algorithm

The highest common factor hcf(a,b)\text{hcf}(a,b) is the largest integer dividing both. The key fact is hcf(a,b)=hcf(b,r)\text{hcf}(a,b)=\text{hcf}(b,r), since any common divisor of aa and bb divides r=a−bqr=a-bq, and any common divisor of bb and rr divides a=bq+ra=bq+r. Repeat the division theorem on the divisor and remainder until the remainder is 00. The last non-zero remainder is the hcf. Example: 252=1(198)+54252=1(198)+54; 198=3(54)+36198=3(54)+36; 54=1(36)+1854=1(36)+18; 36=2(18)+036=2(18)+0. So hcf(252,198)=18\text{hcf}(252,198)=18. Two integers with hcf 11 are coprime, and lcm=abhcf\text{lcm}=\frac{ab}{\text{hcf}}, so lcm(252,198)=2772\text{lcm}(252,198)=2772.

Key termshighest common factorcoprime
Exam tip

Write every line as a=bq+ra=bq+r in full; that format is needed for the back substitution later.

Section 3

Bezout's identity

Bezout's identity: for integers a,ba,b (not both zero) there exist integers x,yx,y with ax+by=hcf(a,b).ax+by=\text{hcf}(a,b). Find xx and yy by back substitution: rearrange each step of the algorithm as r=a−bqr=a-bq, then work upwards from the line with the hcf, replacing each remainder in turn. Example, 240240 and 4646: 240=5(46)+10240=5(46)+10, 46=4(10)+646=4(10)+6, 10=1(6)+410=1(6)+4, 6=1(4)+26=1(4)+2. Then 2=6−4=2(6)−10=2(46)−9(10)=47(46)−9(240)2=6-4=2(6)-10=2(46)-9(10)=47(46)-9(240), so x=−9x=-9, y=47y=47. Always check: 47×46−9×240=2162−2160=247\times46-9\times240=2162-2160=2.

Key termsBezout's identityback substitution
Common mistake

Expanding the brackets too early and losing track of which remainder is which. Keep aa and bb as unevaluated terms and collect them at the end.

Section 4

When is ax+by=cax+by=c solvable?

Since hcf(a,b)\text{hcf}(a,b) divides ax+byax+by for all integers x,yx,y, the equation ax+by=cax+by=c has integer solutions if and only if hcf(a,b)\text{hcf}(a,b) divides cc. If d=hcf(a,b)d=\text{hcf}(a,b) and d∣cd\mid c, multiply the Bezout solution by cd\frac cd. Example: 1547x+504y=101547x+504y=10 has no solution because hcf=7∤10\text{hcf}=7\nmid10, but 1547x+504y=71547x+504y=7 does: 7=29(1547)−89(504)7=29(1547)-89(504). In particular, aa and bb are coprime if and only if ax+by=1ax+by=1 has a solution.

Key termsdivides
Exam tip

To show no solution exists, state the hcf and that it does not divide cc.

That's the notes covered.

Carry on to the next subtopic.

Exam questions on Division theorem, Euclidean algorithm and Bezout's identity

  1. Consider the integers 252252 and 198198.
    Find the lowest common multiple of 252252 and 198198.2 marks
  2. A florist has 391 roses and 221 lilies. She makes identical bouquets, using every flower, with each bouquet containing the same number of roses and the same number of lilies.
    Explain why hcf(391,221)=hcf(221,170)\text{hcf}(391,221)=\text{hcf}(221,170).2 marks
  3. Let a=240a=240 and b=46b=46.
    Use the Euclidean algorithm to find the highest common factor of aa and bb.3 marks
See the full worksheet

Written by the Exaim team, led by Shaun Daswani (Head of Upper Secondary, Improve ME Institute; MSc Financial Mathematics, Imperial College London; BSc, UCL) and Jason Daswani (operational lead, Improve ME Institute; LSE).