Euclid division algorithm: stop at remainder 0, then check
Write a = b × q + r and repeat with b and r until the remainder is 0. The last divisor is the HCF. The mistake to avoid is stopping early on a quotient of 1. A quick check with prime factors, or by dividing, tells you whether the answer is right.
All the numbers below are invented for practice. For the theory and textbook-style questions, see the Class 10 real numbers chapter page.
The method
- Divide the larger number a by the smaller number b: a = b × q + r.
- If r is not 0, divide b by r and repeat.
- Stop only when the remainder is 0. The divisor in that line is the HCF.
- Check: the HCF divides both numbers, and matches the prime factors they share.
Example 1: five divisions
Numbers: 612 and 168. Steps: 612 = 168 × 3 + 108; 168 = 108 × 1 + 60; 108 = 60 × 1 + 48; 60 = 48 × 1 + 12; 48 = 12 × 4 + 0. HCF: 12.
Divide the larger number by the smaller one, then divide the divisor by the remainder, and repeat. The remainder first reaches 0 in the last line, where the divisor is 12. So the HCF is 12. Three of the quotients are 1 on the way, and the process still goes on.
Check: Prime factors: 612 = 2 × 2 × 3 × 3 × 17 and 168 = 2 × 2 × 2 × 3 × 7. The common part is 2 × 2 × 3 = 12. Also 612 ÷ 12 = 51 and 168 ÷ 12 = 14, both whole.
Example 2: the HCF is 1
Numbers: 455 and 272. Steps: 455 = 272 × 1 + 183; 272 = 183 × 1 + 89; 183 = 89 × 2 + 5; 89 = 5 × 17 + 4; 5 = 4 × 1 + 1; 4 = 1 × 4 + 0. HCF: 1.
The remainders fall 183, 89, 5, 4, 1 and then 0. The last divisor, the one that leaves remainder 0, is 1. So the HCF is 1 and the two numbers are co-prime. The remainder 1 on the way is not the end. The run stops at the 0.
Check: Prime factors: 455 = 5 × 7 × 13 and 272 = 2 × 2 × 2 × 2 × 17. They share no prime, so the HCF is 1. Every number is divisible by 1.
Example 3: only two divisions
Numbers: 1105 and 255. Steps: 1105 = 255 × 4 + 85; 255 = 85 × 3 + 0. HCF: 85.
The first division leaves 85. The second division, 255 ÷ 85, leaves 0, so the divisor 85 is the HCF. It took two lines.
Check: Prime factors: 1105 = 5 × 13 × 17 and 255 = 3 × 5 × 17. The common part is 5 × 17 = 85. Also 1105 ÷ 85 = 13 and 255 ÷ 85 = 3.
The trap: stopping when the quotient is 1
Numbers: 612 and 168. Early stop: 168 = 108 × 1 + 60. Wrong HCF: 60. Correct HCF: 12.
In Example 1 the second line is 168 = 108 × 1 + 60. The quotient is 1, and it is tempting to stop and say the HCF is 60. A quotient of 1 means nothing special. Check the claim: 612 ÷ 60 = 10 remainder 12, so 60 does not even divide 612, and it cannot be the HCF. The only stop signal is a remainder of 0. Keep dividing until you get it. The last divisor, here 12, is the HCF, and it divides both 612 and 168.
Try two yourself
First: find the HCF of 1155 and 825. Second: show that 391 and 360 are co-prime.
Show the worked self-check
First: 1155 = 825 × 1 + 330; 825 = 330 × 2 + 165; 330 = 165 × 2 + 0. The remainder is 0 in the last line, so the HCF is 165. Check: 1155 = 3 × 5 × 7 × 11 and 825 = 3 × 5 × 5 × 11, which share 3 × 5 × 11 = 165.
Second: the divisions run 391 = 360 × 1 + 31, 360 = 31 × 11 + 19, 31 = 19 × 1 + 12, 19 = 12 × 1 + 7, 12 = 7 × 1 + 5, 7 = 5 × 1 + 2, 5 = 2 × 2 + 1, and 2 = 1 × 2 + 0. The HCF is 1, so they are co-prime. Check: 391 = 17 × 23 and 360 = 2 × 2 × 2 × 3 × 3 × 5 share no prime.
Limits of this page
- It covers the HCF of two positive whole numbers.
- Prime factorisation is used as a check here. For small numbers it can be quicker, but for big ones the division method is faster.
- The numbers are practice values, not a textbook exercise key.
Common questions
Why does the division algorithm give the HCF?
Any number that divides a and b also divides the remainder r in a = bq + r, and the reverse is true too. So HCF(a, b) equals HCF(b, r). Each step keeps the HCF the same with smaller numbers, until the remainder is 0.
Which number is the HCF at the end?
The divisor in the line where the remainder is 0, which is the last non-zero remainder. In 48 = 12 × 4 + 0 it is 12. It is not 0, and it is not the last quotient.
What if the smaller number divides the larger one at once?
Then the first remainder is 0 and the smaller number is the HCF. For example, 255 divides into 765 three times exactly, so the HCF of 765 and 255 is 255. One line is enough.
How do I check my answer quickly?
Divide both numbers by the HCF. Both must come out whole. Then the two results must have HCF 1, and that is the second check. Prime factorisation is a third, slower check that should match.
Sources and scope
Source checked . It introduces Euclid's division algorithm as a way to compute the HCF of two positive integers. The numbers, traps and practice here are original EZT work.
- NCERT Class 10 Mathematics, Chapter 1: Real Numbers, on Euclid's division algorithm.