Nepedia
Back to Discover
Independent Reader
🔢

Euclidean algorithm

math Maturity 7-9 Next article →

Imagine you have two different lengths. You want to find the largest ruler that fits into both perfectly. This special number is called the greatest common divisor, or GCD.

Euclid's algorithm Book VII Proposition 2 3
Euclid's algorithm Book VII Proposition 2 3

An ancient Greek thinker named Euclid described a way to find it. This way is called the Euclidean algorithm. It is one of the oldest sets of steps in math.

Euklid
Euklid

To use it, you look at the difference between two numbers. You replace the larger number with that difference. You keep doing this with smaller and smaller pairs. Eventually, the numbers become equal. That number is your GCD. A faster way uses remainders instead of subtraction. This is much quicker for big numbers.

Euclidean algorithm 1071 462
Euclidean algorithm 1071 462

This math helps in many ways. It can make fractions look simple. It also helps keep internet messages safe through cryptography. This is a way to hide secrets using math. In 1844, Gabriel Lamé proved how fast this method works. His work helped start the study of how hard math problems are to solve.

166 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (9)
File:Euclid's algorithm Book VII Proposition 2 3.svg
Euclid's algorithm Book VII Proposition 2 3.svg
File:24x60.svg
24x60.svg
File:Euclidean algorithm 1071 462.gif
Euclidean algorithm 1071 462.gif
File:Euklid.jpg
Euklid.jpg
File:Diophante Bezout.svg
Diophante Bezout.svg
File:SternBrocotTree.svg
SternBrocotTree.svg
File:Euclidean Algorithm Running Time.svg
Euclidean Algorithm Running Time.svg
File:Gaussian primes.svg
Gaussian primes.svg
File:Eisenstein primes.svg
Eisenstein primes.svg
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.