🧪 Lab 8 of 41 · Maths Magical Lab for Class 9 — Concept Videos, Visuals & Practice · Class 9
Euclid’s Algorithm
NCERT: Grade 9 Part II, Ch 11 The World of Algorithms (greatest common divisor, Euclid’s algorithm)
The rule
gcd(a, b) = gcd(b, remainder). Keep dividing until the remainder is 0; the last divisor is the gcd.



Where you meet it
Cutting the largest equal square tiles for a rectangular floor, or packing two quantities into equal bags with nothing left, uses the gcd.
Common mistake: Stopping after one step, or taking the smaller number as the gcd.
In the board exam
Class 10 Real Numbers starts with HCF and LCM; Euclid’s division lemma a = bq + r is the reason the method works.
Do it for real
Cut a 21 cm by 9 cm paper rectangle into the biggest squares you can, again and again. Measure the last square.
Check yourself
gcd(84, 36) = ?
- 36
- 12
- 6
Show answer
B. 12
84 = 2 × 36 + 12; 36 = 3 × 12 + 0.
gcd(a, b) is the same as…
- gcd(b, remainder of a ÷ b)
- a − b
- a × b
Show answer
A. gcd(b, remainder of a ÷ b)
Common divisors carry over to the remainder.
gcd(17, 5) = ?
- 1
- 5
- 17
Show answer
A. 1
17 = 3 × 5 + 2, 5 = 2 × 2 + 1.
An algorithm is…
- a list of steps that always works
- a guess
Show answer
A. a list of steps that always works
It ends with the answer every time.
If gcd(a, b) = 1, a and b are…
- co-prime
- both prime
- equal
Show answer
A. co-prime
Their only common divisor is 1.