Loading...
3+
3
Login

The Euclidean Algorithm – The Fastest Way to Find the GCF

The Euclidean Algorithm is a method for finding the GCF of two numbers that was described by the Greek mathematician Euclid around 300 BC. It remains one of the most efficient algorithms in all of mathematics, even for very large numbers.

The Core Idea

GCF(a, b) = GCF(b, a mod b), where “mod” means the remainder when a is divided by b. Repeat until the remainder is 0. The GCF is the last non-zero remainder.

Step-by-Step Example 1

GCF(48, 18)
StepDivisionRemainder
148 ÷ 18 = 2 remainder 1212
218 ÷ 12 = 1 remainder 66
312 ÷ 6 = 2 remainder 00 — stop

GCF(48,18) = 6

Step-by-Step Example 2

GCF(252, 105)
StepDivisionRemainder
1252 ÷ 105 = 2 r 4242
2105 ÷ 42 = 2 r 2121
342 ÷ 21 = 2 r 00 — stop

GCF(252,105) = 21

Why It Works

If d divides both a and b, it also divides their difference a − b, and any remainder when a is divided by b. So the set of common divisors of (a, b) is identical to that of (b, remainder). We keep reducing until one number is 0, leaving the GCF.

Key Takeaways

  • Divide the larger by the smaller; take the remainder.
  • Replace the larger with the smaller and the smaller with the remainder.
  • Repeat until the remainder is 0; the GCF is the last non-zero remainder.
  • Far faster than listing factors for large numbers.
  • Once GCF is found, use LCM = (a × b) ÷ GCF.

Practice Questions

  1. Find GCF(84, 36) using the Euclidean algorithm.
  2. Find GCF(100, 75) step by step.
  3. Find GCF(1,071, 462).
  4. Use the result to find LCM(84, 36).
  5. Two numbers have GCF 14. One is 98. Find LCM using the Euclidean result.
HomeAboutResourcesDashboard