Euclidean Algorithm
Updated 2026-07-28
Summary
In mathematics, the Euclidean algorithm, also known as the division algorithm, is a method for computing the greatest common divisor (GCD) of two integers. It first appeared in Euclid's Elements (Book VII, Propositions i and ii), and in China it can be traced back to the Nine Chapters on the Mathematical Art from the Eastern Han Dynasty. The greatest common divisor of two integers is the largest positive integer that divides both without a remainder. The Euclidean algorithm is based on the principle that the GCD of two integers is equal to the GCD of the smaller number and the remainder when the larger is divided by the smaller.
Definition
In mathematics, the Euclidean algorithm, also known as the division algorithm, is a method for computing the greatest common divisor (GCD) of two integers. It first appeared in Euclid's Elements (Book VII, Propositions i and ii), and in China it can be traced back to the Nine Chapters on the Mathematical Art from the Eastern Han Dynasty. The greatest common divisor of two integers is the largest positive integer that divides both without a remainder. The Euclidean algorithm is based on the principle that the GCD of two integers is equal to the GCD of the smaller number and the remainder when the larger is divided by the smaller. For example, to find the GCD of 252 and 105: 252 = 21 × 12; 105 = 21 × 5; because 252 ÷ ...
Introduction
How to use
In mathematics, the Euclidean algorithm, also known as the division algorithm, is a method for computing the greatest common divisor (GCD) of two integers. It first appeared in Euclid's Elements (Book VII, Propositions i and ii), and in China it can be traced back to the Nine Chapters on the Mathematical Art from the Eastern Han Dynasty. The greatest common divisor of two integers is the largest positive integer that divides both without a remainder. The Euclidean algorithm is based on the principle that the GCD of two integers is equal to the GCD of the smaller number and the remainder when the larger is divided by the smaller.
Mechanism
gcd(a,b) = gcd(b, a mod b). Each step replaces the larger number with the remainder, reducing the scale until the remainder is zero; the last non-zero remainder is the GCD.
Practice
In progress 0/4Practice this model in one real situation:
Cases
- Find the GCD of 1071 and 462; in negotiation, strip away differences to find common ground.
Common pitfalls
- Mistakenly thinking prime factorization is needed; ignoring the logarithmic convergence rate of recursion.
Sources
Source support: Explicit
References currently contain only Wikipedia links; primary sources still need review.
- zh.wikipedia.orghttps://zh.wikipedia.org/wiki/%E8%BC%BE%E8%BD%89%E7%9B%B8%E9%99%A4%E6%B3%95verified
account_treeGenealogyexpand_more
PRIVATE NOTES · Only visible to you
SAVED Q&A
ENTRY Q&A · Private saving available
Ask with a clear boundary
thinkingmodels answers from published entry context only.
Your question is sent to thinkingmodels. The answer uses public entry context only.
RELATED MODELS