Home / Methods / Classics / Euclidean algorithm
Euclidean algorithm
For simplifying fractions, finding when repeating events line up, cutting material with no waste, or syncing cycles.
Or ask in your own words (needs an AI key)
What you need
- first number
- second number
What it calculates
- the greatest common divisor
- the least common multiple
- whether the numbers are coprime (1 — yes, 0 — no)
- how many steps the algorithm took, steps
Examples
84 and 36
| the greatest common divisor | 12 |
| the least common multiple | 252 |
| whether the numbers are coprime (1 — yes, 0 — no) | 0 |
| how many steps the algorithm took | 2 steps |
Gears with 48 and 35 teeth: when the mesh repeats
| the greatest common divisor | 1 |
| the least common multiple | 1,680 |
| whether the numbers are coprime (1 — yes, 0 — no) | 1 |
| how many steps the algorithm took | 5 steps |
Example numbers are checked against an independent calculation. The AI in Numo does not compute: it only parses your question; a deterministic engine does the maths.
Careful
Works only with whole numbers.
Typical mistakes
- Looking for the GCD of fractions — the algorithm is for integers.
- Confusing GCD with LCM.