MathClario
← Back to Middle school
Middle schoolπŸ”’Arithmetic●●○○○· 4 min
🧩

Find the GCD without a single division

Euclid's algorithm, mental version: subtract the small from the big until you get the same value. That's the GCD.

The algorithm in 1 sentence

The GCD of two numbers doesn’t change if you replace the bigger one with its difference with the smaller.

Example step by step: GCD(84, 30)

StepOperationResult
184βˆ’3084 - 30(54,30)(54, 30)
254βˆ’3054 - 30(24,30)(24, 30)
330βˆ’2430 - 24(24,6)(24, 6)
424βˆ’624 - 6(18,6)(18, 6)
518βˆ’618 - 6(12,6)(12, 6)
612βˆ’612 - 6(6,6)(6, 6) βœ“

GCD(84, 30) = 6.

The Β« division Β» version (faster)

Instead of subtracting many times, take the remainder of the division:

  • 84=2Γ—30+2484 = 2 \times 30 + 24 β†’ GCD(30, 24)
  • 30=1Γ—24+630 = 1 \times 24 + 6 β†’ GCD(24, 6)
  • 24=4Γ—6+024 = 4 \times 6 + 0 β†’ GCD = 6.

This is the classic Euclidean algorithm.

Spot-the-shortcut

If both numbers end in the same even digit, try 2 as a factor. If both are multiples of 3 (digit sum), try 3. Skip the algorithm.

?Your turn

What is the GCD of 48 and 36?

Mini-quiz

Question 1 / 3

GCD(24, 36) = ?

#GCD#Euclid#arithmetic#subtraction

You might also like