File:Euclid's_algorithm_Book_VII_Proposition_2_3.svg · Wikimedia Commons · See Wikimedia Commons
Euclidean algorithm
Sign in to saveAlso known as Euclid's algorithm, GCD algorithm
algorithm for computing greatest common divisors
The Euclidean algorithm is a step-by-step procedure for finding the greatest common divisor of two numbers—that is, the largest number that divides evenly into both of them. It's one of the oldest and most efficient mathematical methods known, and it remains important in modern mathematics and computer science for solving problems involving divisibility and number relationships.
AI-generated from the Wikipedia summary — may contain errors.
Wikidata facts
- Image
- Euclidean algorithm 252 105 animation flipped.gif
Show 1 more fact
- Commons category
- Euclidean algorithm
Sources (3)
via Wikidata · CC0
~40 min read
Article
Euclid's method for finding the greatest common divisor (GCD) of two starting lengths BA and DC, both defined to be multiples of a common "unit" length. The length DC being shorter, it is used to "measure" BA, but only once because the remainder EA is less than DC. EA now measures (twice) the shorter length DC, with remainder FC shorter than EA. Then FC measures (three times) length EA. Because there is no remainder, the process ends with FC being the GCD. On the right Nicomachus's example with numbers 49 and 21 resulting in their GCD of 7 (derived from Heath 1908:300).
In mathematics, the Euclidean algorithm, or Euclid's algorithm, is an efficient method for computing the greatest common divisor (GCD) of two integers, the largest number that divides them both without a remainder. It is named after the ancient Greek mathematician Euclid, who first described it in his Elements (c. 300 BC). It is an example of an algorithm, and is one of the oldest algorithms in common use. It can be used to reduce fractions to their simplest form, and is a part of many other number-theoretic and cryptographic calculations.
Gallery (9)
Available in 60 languages
- Español
- Français
- Deutsch
- 中文
- 日本語
- Русский
- Português
- Italiano
- العربية
- Armenian
- Asturian
- Azerbaijani
- Bahasa Indonesia
- Bangla
- Bashkir
- Basque
- Belarusian
- Bulgarian
Show 41 more
- Catalan
- Central Kurdish
- Croatian
- Czech
- Danish
- Esperanto
- Finnish
- Galician
- Georgian
- Greek
- Hebrew
- Hungarian
- Latin
- Latvian
- Lithuanian
- Low German
- Macedonian
- Malayalam
- Mongolian
- Nederlands
- Norwegian
- Norwegian Nynorsk
- Piedmontese
- Polski
- Romanian
- Serbian
- Serbian (Latin)
- simple
- Slovak
- Slovenian
- Svenska
- Tamil
- Tiếng Việt
- Türkçe
- Ukrainian
- Welsh
- Wu Chinese
- zh_yue
- فارسی
- ไทย
- 한국어
via Wikidata sitelinks · CC0