encyclopegia.org

Euclidean algorithm

'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 ( ). 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. The Euclidean algorithm is based on the principle that the greatest common divisor of two numbers does not change if the larger number is replaced by its difference with the smaller number. For example, is the GCD of and (as and , and the same number is also the GCD of and . Since this replacement reduces the larger of the two numbers, repeating this process gives successively smaller pairs of numbers until the two numbers become equal. When that occurs, that number is the GCD of the original two numbers. By reversing the steps or using the extended Euclidean algorithm, the GCD can be expressed as a linear combination of the two original numbers, that is the sum of the two numbers, each multiplied by an integer (for example, ).…

'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 ( ). 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. The Euclidean algorithm is based on the principle that the greatest common divisor of two numbers does not change if the larger number is replaced by its difference with the smaller number. For example, is the GCD of and (as and , and the same number is also the GCD of and . Since this replacement reduces the larger of the two numbers, repeating this process gives successively smaller pairs of numbers until the two numbers become equal. When that occurs, that number is the GCD of the original two numbers. By reversing the steps or using the extended Euclidean algorithm, the GCD can be expressed as a linear combination of the two original numbers, that is the sum of the two numbers, each multiplied by an integer (for example, ). The fact that the GCD can always be expressed in this way is known as Bézout's identity. The version of the Euclidean algorithm described above—which follows Euclid's original presentation—may require many subtraction steps to find the GCD when one of the given numbers is much bigger than the other. A more efficient version of the algorithm shortcuts these steps, instead replacing the larger of the two numbers by its remainder when divided by the smaller of the two (with this version, the algorithm stops when reaching a zero remainder). With this improvement, the algorithm never requires more steps than five times the number of digits (base 10) of the smaller integer. This was proven by Gabriel Lamé in 1844 (Lamé's Theorem), and marks the beginning of computational complexity theory. Additional methods for improving the algorithm's efficiency were developed in the 20th century. The Euclidean algorithm has many theoretical and practical applications. It is used for reducing fractions to their simplest form and for performing division in modular arithmetic. Computations using this algorithm form part of the cryptographic protocols that are used to secure internet communications, and in methods for breaking these cryptosystems by factoring large composite numbers. The Euclidean algorithm may be used to solve Diophantine equations, such as finding numbers that satisfy multiple congruences according to the Chinese remainder theorem, to construct continued fractions, and to find accurate rational approximations to real numbers. Finally, it can be used as a basic tool for proving theorems in number theory such as Lagrange's four-square theorem and the uniqueness of prime factorizations. The original algorithm was described only for natural numbers and geometric lengths (real numbers), but the algorithm was generalized in the 19th century to other types of numbers, such as Gaussian integers and polynomials of one variable. This led to modern abstract algebraic notions such as Euclidean domains. The Euclidean algorithm can be thought of as constructing a sequence of non-negative integers that begins with the two given integers r_{-2} = a and r_{-1} = b and will eventually terminate with the integer zero: \{ r_{-2} = a,\ r_{-1} = b,\ r_0,\ r_1,\ \cdots,\ r_{n-1},\ r_n = 0 \} with r_{k+1} The integer r_{n-1} will then be the GCD and we can state \text{gcd}(a,b) = r_{n-1}. The algorithm indicates how to construct the intermediate remainders r_k via division-with-remainder on the preceding pair (r_{k-2},\ r_{k-1}) by finding an integer quotient q_k so that: r_{k-2} = q_k \cdot r_{k-1} + r_k \text{, with } \ r_{k-1} > r_k \geq 0. Because the sequence of non-negative integers \{ r_k \} is strictly decreasing, it eventually must terminate. In other words, since r_k \ge 0 for every k, and each r_k is an integer that is strictly smaller than the preceding r_{k-1}, there eventually cannot be a non-negative integer smaller than zero, and hence the algorithm must terminate. In fact, the algorithm will always terminate at the th step with r_n equal to zero. To illustrate, suppose the GCD of 1071 and 462 is requested. The sequence is initially \{r_{-2} = 1071,\ r_{-1} = 462 \} and in order to find r_0, we need to find integers q_0 and r_0 such that: 1071 = q_0 \cdot 462 + r_0. This is the quotient q_0 = 2 since 1071 = 2 \cdot 462 + 147. This determines r_0 = 147 and so the sequence is now \{1071,\ 462,\ r_0 = 147 \}. The next step is to continue the sequence to find r_1 by finding integers q_1 and r_1 such that: 462 = q_1 \cdot 147 + r_1. This is the quotient q_1 = 3 since 462 = 3 \cdot 147 + 21. This determines r_1 = 21 and so the sequence is now \{1071,\ 462,\ 147,\ r_1 = 21 \}. The next step is to continue the sequence to find r_2 by finding integers q_2 and r_2 such that: 147 = q_2 \cdot 21 + r_2. This is the quotient q_2 = 7 since 147 = 7 \cdot 21 + 0. This determines r_2 = 0 and so the sequence is completed as \{1071,\ 462,\ 147,\ 21,\ r_2 = 0 \} as no further non-negative integer smaller than 0 can be found. The penultimate remainder 21 is therefore the requested GCD: \text{gcd}(1071,\ 462) = 21. We can generalize slightly by dropping any ordering requirement on the initial two values a and b. If a = b, the algorithm may continue and trivially find that \text{gcd}(a,\ a) = a as the sequence of remainders will be \{a,\ a,\ 0\}. If a then we can also continue since a \equiv 0 \cdot b + a, suggesting the next remainder should be a itself, and the sequence is \{a,\ b,\ a,\ \cdots \}. Normally, this would be invalid because it breaks the requirement r_0 but now we have a by construction, so the requirement is automatically satisfied and the Euclidean algorithm can continue as normal. Therefore, dropping any ordering between the first two integers does not affect the conclusion that the sequence must eventually terminate because the next remainder will always satisfy r_0 and everything continues as above. The only modifications that need to be made are that r_{k} only for k \ge 0, and that the sub-sequence of non-negative integers \{ r_{k-1} \} for k \ge 0 is strictly decreasing, therefore excluding a = r_{-2} from both statements. The existence of a step N such that r_N=0 follows from the condition |r_i| , for i\geq1 . This ensures that the algorithm terminates. The last non-zero remainder r_{N-1} being equal to \gcd(a,b) follows from the following properties of \gcd 1. \gcd(x,0)=x , for all x\neq0 . In fact, the common divisors of x and 0 are exactly all the divisors of x , of which x itself is the largest. 2. \gcd(x,y)=\gcd(y,x-zy) In fact, the sets of common divisors of the pairs (x,y) and (y, x-zy) are the same. In particular, the largest of their common divisors are the same. To see this, assume that d is a common divisor of x and y . This means that there are integers X,Y such that x=dX and y=dY . It follows that x-zy=dX-zdY=d(X-zY) , where X-zY is an integer. Therefore, d is also a divisor of x-zy . Conversely, if d is a common divisor of x-zy and y , then there are integers Z and Y such that x-zy=dZ and y=dY . From this x=(x-zy)+zy=dZ+zdY=d(Z+zY) , where Z+zY is an integer. Therefore, d is also a common divisor of x and y . Now, the Euclidean algorithm starts with the pair (r_{-2},r_{-1})=(a,b) and at each step, the pair of remainders (r_{k-2},r_{k-1}) is replaced by (r_{k-1},r_{k-2}-q_kr_{k-1})=(r_{k-1},r_{k}) . Property 2 shows that the \gcd of the pairs remains invariant. In particular, the \gcd of the first pair (a,b) and the last pair (r_{N-1},0) are the same. Applying Property 1, \gcd(a,b)=\gcd(r_{N-1},0)=r_{N-1} . t := b b := a mod b a := t return a At the beginning of the th iteration, the variable holds the latest remainder , whereas the variable holds its predecessor, . The step is equivalent to the above recursion formula . The temporary variable holds the value of while the next remainder is being calculated. At the end of the loop iteration, the variable holds the remainder , whereas the variable holds its predecessor, . (If negative inputs are allowed, or if the mod function may return negative values, the last line must be replaced with .) In the subtraction-based version, which was Euclid's original version, the remainder calculation ( ) is replaced by repeated subtraction. Contrary to the division-based version, which works with arbitrary integers as input, the subtraction-based version supposes that the input consists of positive integers and stops when : function gcd(a, b) while a ≠ b if a > b a := a − b else b := b − a return a The variables and alternate holding the previous remainders and . Assume that is larger than at the beginning of an iteration; then equals , since . During the loop iteration, is reduced by multiples of the previous remainder until is smaller than . Then is the next remainder . Then is reduced by multiples of until it is again smaller than , giving the next remainder , and so on. The recursive version is based on the equality of the GCDs of successive remainders and the stopping condition . function gcd(a, b) if b = 0 return a else return gcd(b, a mod b) (As above, if negative inputs are allowed, or if the mod function may return negative values, the instruction must be replaced by .) For illustration, the is calculated from the equivalent . The latter GCD is calculated from the , which in turn is calculated from the . a & = q_0 b + r_0 \\ b & = q_1 r_0 + r_1 \\ & \,\,\,\vdots \\ r_{N-2} & = q_N r_{N-1} + 0 \end{align} can be written as a product of quotient matrices multiplying a two-dimensional remainder vector \begin{pmatrix} a \\ b \end{pmatrix} = \begin{pmatrix} q_0 & 1 \\ 1 & 0 \end{pmatrix} \begin{pmatrix} b \\ r_0 \end{pmatrix} = \begin{pmatrix} q_0 & 1 \\ 1 & 0 \end{pmatrix} \begin{pmatrix} q_1 & 1 \\ 1 & 0 \end{pmatrix} \begin{pmatrix} r_0 \\ r_1 \end{pmatrix} = \cdots = \prod_{i=0}^N \begin{pmatrix} q_i & 1 \\ 1 & 0 \end{pmatrix} \begin{pmatrix} r_{N-1} \\ 0 \end{pmatrix} \,. Let represent the product of all the quotient matrices \mathbf{M} = \begin{pmatrix} m_{11} & m_{12} \\ m_{21} & m_{22} \end{pmatrix} = \prod_{i=0}^N \begin{pmatrix} q_i & 1 \\ 1 & 0 \end{pmatrix} = \begin{pmatrix} q_0 & 1 \\ 1 & 0 \end{pmatrix} \begin{pmatrix} q_1 & 1 \\ 1 & 0 \end{pmatrix} \cdots \begin{pmatrix} q_{N} & 1 \\ 1 & 0 \end{pmatrix} \,. This simplifies the Euclidean algorithm to the form \begin{pmatrix} a \\ b \end{pmatrix} = \mathbf{M} \begin{pmatrix} r_{N-1} \\ 0 \end{pmatrix} = \mathbf{M} \begin{pmatrix} g \\ 0 \end{pmatrix} \,. To express as a linear sum of and , both sides of this equation can be multiplied by the inverse of the matrix . The determinant of equals , since it equals the product of the determinants of the quotient matrices, each of which is negative one. Since the determinant of is never zero, the vector of the final remainders can be solved using the inverse of \begin{pmatrix} g \\ 0 \end{pmatrix} = \mathbf{M}^{-1} \begin{pmatrix} a \\ b \end{pmatrix} = (-1)^{N+1} \begin{pmatrix} m_{22} & -m_{12} \\ -m_{21} & m_{11} \end{pmatrix} \begin{pmatrix} a \\ b \end{pmatrix} \,. Since the top equation gives , the two integers of Bézout's identity are and . The matrix method is as efficient as the equivalent recursion, with two multiplications and two additions per step of the Euclidean algorithm. M_i = \frac M {m_i}. Thus, each M i is the product of all the moduli except m i . The solution depends on finding N new numbers h i such that M_i h_i \equiv 1 \pmod {m_i} \,. With these numbers h i , any integer x can be reconstructed from its remainders x i by the equation x \equiv (x_1 M_1 h_1 + x_2 M_2 h_2 + \cdots + x_N M_N h_N) \pmod M \,. Since these numbers h i are the multiplicative inverses of the M i , they may be found using Euclid's algorithm as described in the previous subsection. = {} & \gcd(3,1) & \rightarrow \\ = {} & \gcd(2,1) & \rightarrow \\ = {} & \gcd(1,1). \end{align} The Euclidean algorithm has almost the same relationship to another binary tree on the rational numbers called the Calkin–Wilf tree. The difference is that the path is reversed: instead of producing a path from the root of the tree to a target, it produces a path from the target to the root. \frac a b &= q_0 + \frac{r_0} b \\ \frac b {r_0} &= q_1 + \frac{r_1}{r_0} \\ \frac{r_0}{r_1} &= q_2 + \frac{r_2}{r_1} \\ & \,\,\, \vdots \\ \frac{r_{k-2}}{r_{k-1}} &= q_k + \frac{r_k}{r_{k-1}} \\ & \,\,\, \vdots \\ \frac{r_{N-2}}{r_{N-1}} &= q_N\,. \end{align} The last term on the right-hand side always equals the inverse of the left-hand side of the next equation. Thus, the first two equations may be combined to form \frac a b = q_0 + \cfrac 1 {q_1 + \cfrac{r_1}{r_0}} \,. The third equation may be used to substitute the denominator term r 1 /r 0 , yielding \frac a b = q_0 + \cfrac 1 {q_1 + \cfrac 1 {q_2 + \cfrac{r_2}{r_1}}}\,. The final ratio of remainders r k /r k−1 can always be replaced using the next equation in the series, up to the final equation. The result is a continued fraction \frac a b = q_0 + \cfrac 1 {q_1 + \cfrac 1 {q_2 + \cfrac{1}{\ddots + \cfrac 1 {q_N}}}} = [ q_0; q_1, q_2, \ldots , q_N ] \,. In the worked example above, the gcd(1071, 462) was calculated, and the quotients q k were 2, 3 and 7, respectively. Therefore, the fraction 1071/462 may be written \frac{1071}{462} = 2 + \cfrac 1 {3 + \cfrac 1 7} = [2; 3, 7] as can be confirmed by calculation. The number of steps to calculate the GCD of two natural numbers, a and b, may be denoted by T(a, b). If g is the GCD of a and b, then a = mg and b = ng for two coprime numbers m and n. Then as may be seen by dividing all the steps in the Euclidean algorithm by g. By the same argument, the number of steps remains the same if a and b are multiplied by a common factor w: T(a, b) = T(wa, wb). Therefore, the number of steps T may vary dramatically between neighboring pairs of numbers, such as T(a, b) and T(a, b + 1), depending on the size of the two GCDs. The recursive nature of the Euclidean algorithm gives another equation where T(x, 0) = 0 by assumption. If the Euclidean algorithm requires N steps for a pair of natural numbers a > b > 0, the smallest values of a and b for which this is true are the Fibonacci numbers F N+2 and F N+1 , respectively. More precisely, if the Euclidean algorithm requires N steps for the pair a > b, then one has a ≥ F N+2 and b ≥ F N+1 . This can be shown by induction. If N = 1, b divides a with no remainder; the smallest natural numbers for which this is true is b = 1 and a = 2, which are F 2 and F 3 , respectively. Now assume that the result holds for all values of N up to M − 1. The first step of the M-step algorithm is a = q 0 b + r 0 , and the Euclidean algorithm requires M − 1 steps for the pair b > r 0 . By induction hypothesis, one has b ≥ F M+1 and r 0  ≥ F M . Therefore, a = q 0 b + r 0  ≥ b + r 0  ≥ F M+1  + F M  = F M+2 , which is the desired inequality. This proof, published by Gabriel Lamé in 1844, represents the beginning of computational complexity theory, and also the first practical application of the Fibonacci numbers. This result suffices to show that the number of steps in Euclid's algorithm can never be more than five times the number of its digits (base 10). For if the algorithm requires N steps, then b is greater than or equal to F N+1 which in turn is greater than or equal to φ N−1 , where φ is the golden ratio. Since b ≥ φ N−1 , then N − 1 ≤ log φ b. Since log 10 φ > 1/5, (N − 1)/5  10 φ log φ b = log 10 b. Thus, N ≤ 5 log 10 b. Thus, the Euclidean algorithm always needs less than O(h) divisions, where h is the number of digits in the smaller number b. T(a) = \frac 1 a \sum_{0 \leq b However, since T(a, b) fluctuates dramatically with the GCD of the two numbers, the averaged function T(a) is likewise "noisy". To reduce this noise, a second average τ(a) is taken over all numbers coprime with a \tau(a) = \frac 1 {\varphi(a)} \sum_{\begin{smallmatrix} 0 \leq b There are φ(a) coprime integers less than a, where φ is Euler's totient function. This tau average grows smoothly with a \tau(a) = \frac{12}{\pi^2}\ln 2 \ln a + C + O(a^{-1/6-\varepsilon}) with the residual error being of order a −(1/6)+ε , where ε is infinitesimal. The constant C in this formula is called Porter's constant and equals C= -\frac 1 2 + \frac{6 \ln 2}{\pi^2}\left(4\gamma -\frac{24}{\pi^2}\zeta'(2) + 3\ln 2 - 2\right) \approx 1.467 where is the Euler–Mascheroni constant and is the derivative of the Riemann zeta function. The leading coefficient (12/π 2 ) ln 2 was determined by two independent methods. Since the first average can be calculated from the tau average by summing over the divisors d of a T(a) = \frac 1 a \sum_{d \mid a} \varphi(d) \tau(d) it can be approximated by the formula T(a) \approx C + \frac{12}{\pi^2} \ln 2\, \biggl({\ln a} - \sum_{d \mid a} \frac{\Lambda(d)} d\biggr) where Λ(d) is the Mangoldt function. A third average Y(n) is defined as the mean number of steps required when both a and b are chosen randomly (with uniform distribution) from 1 to n Y(n) = \frac 1 {n^2} \sum_{a=1}^n \sum_{b=1}^n T(a, b) = \frac 1 n \sum_{a=1}^n T(a). Substituting the approximate formula for T(a) into this equation yields an estimate for Y(n) Y(n) \approx \frac{12}{\pi^2} \ln 2 \ln n + 0.06. \frac{a}{b} = \frac{mg}{ng} = \frac{m}{n}, and can be written as a finite continued fraction . If the algorithm does not stop, the fraction is an irrational number and can be described by an infinite continued fraction . Examples of infinite continued fractions are the golden ratio and the square root of two, . When applied to two arbitrary real numbers, the algorithm is unlikely to stop, since almost all ratios of two real numbers are irrational. An infinite continued fraction may be truncated at a step to yield an approximation to that improves as is increased. The approximation is described by convergents ; the numerator and denominators are coprime and obey the recurrence relation \begin{align} m_k &= q_k m_{k-1} + m_{k-2} \\ n_k &= q_k n_{k-1} + n_{k-2}, \end{align} where and are the initial values of the recursion. The convergent is the best rational number approximation to with denominator : \left|\frac{a}{b} - \frac{m_k}{n_k}\right| r_{k-2}(x) = q_k(x)r_{k-1}(x) + r_k(x), where and . Each quotient polynomial is chosen such that each remainder is either zero or has a degree that is smaller than the degree of its predecessor: . Since the degree is a nonnegative integer, and since it decreases with every step, the Euclidean algorithm concludes in a finite number of steps. The last nonzero remainder is the greatest common divisor of the original two polynomials, and . For example, consider the following two quartic polynomials, which each factor into two quadratic polynomials \begin{align} a(x) &= x^4 - 4x^3 + 4x^2 - 3x + 14 = (x^2 - 5x + 7)(x^2 + x + 2) \qquad \text{and}\\ b(x) &= x^4 + 8x^3 + 12x^2 + 17x + 6 = (x^2 + 7x + 3)(x^2 + x + 2). \end{align} Dividing by yields a remainder . In the next step, is divided by yielding a remainder . Finally, dividing by yields a zero remainder, indicating that is the greatest common divisor polynomial of and , consistent with their factorization. Many of the applications described above for integers carry over to polynomials. The Euclidean algorithm can be used to solve linear Diophantine equations and Chinese remainder problems for polynomials; continued fractions of polynomials can also be defined. The polynomial Euclidean algorithm has other applications, such as Sturm chains, a method for counting the zeros of a polynomial that lie inside a given real interval. This in turn has applications in several areas, such as the Routh–Hurwitz stability criterion in control theory. Finally, the coefficients of the polynomials need not be drawn from integers, real numbers or even the complex numbers. For example, the coefficients may be drawn from a general field, such as the finite fields described above. The corresponding conclusions about the Euclidean algorithm and its applications hold even for such polynomials. r_k = r_{k-2} - q_k r_{k-1}, where every remainder is strictly smaller than its predecessor: . The first difference is that the quotients and remainders are themselves Gaussian integers, and thus are complex numbers. The quotients are generally found by rounding the real and complex parts of the exact ratio (such as the complex number ) to the nearest integers. The second difference lies in the necessity of defining how one complex remainder can be "smaller" than another. To do this, a norm function is defined, which converts every Gaussian integer into an ordinary integer. After each step of the Euclidean algorithm, the norm of the remainder is smaller than the norm of the preceding remainder, . Since the norm is a nonnegative integer and decreases with every step, the Euclidean algorithm for Gaussian integers ends in a finite number of steps. The final nonzero remainder is , the Gaussian integer of largest norm that divides both and ; it is unique up to multiplication by a unit, or . Many of the other applications of the Euclidean algorithm carry over to Gaussian integers. For example, it can be used to solve linear Diophantine equations and Chinese remainder problems for Gaussian integers; continued fractions of Gaussian integers can also be defined. \omega = \sqrt D . If, however, does equal a multiple of four plus one, then \omega = \frac{1 + \sqrt{D}}{2} . If the function corresponds to a norm function, such as that used to order the Gaussian integers above, then the domain is known as norm-Euclidean. The norm-Euclidean rings of quadratic integers are exactly those where is one of the values −11, −7, −3, −2, −1, 2, 3, 5, 6, 7, 11, 13, 17, 19, 21, 29, 33, 37, 41, 57, or 73. The cases and yield the Gaussian integers and Eisenstein integers, respectively. The quadratic integers with , such that is the golden ratio, are sometimes called golden integers. If is allowed to be any Euclidean function, then the list of possible values of for which the domain is Euclidean is not yet known. The first example of a Euclidean domain that was not norm-Euclidean (with ) was published in 1994. In 1973, Weinberger proved that a quadratic integer ring with is Euclidean if, and only if, it is a principal ideal domain, provided that the generalized Riemann hypothesis holds. \rho_0 = \alpha - \psi_0\beta = (\xi - \psi_0\eta)\delta, where represents the quotient and the remainder. Here the quotient and remainder are chosen so that (if nonzero) the remainder has for a "Euclidean function" N defined analogously to the Euclidean functions of Euclidean domains in the non-commutative case. This equation shows that any common right divisor of and is likewise a common divisor of the remainder . The analogous equation for the left divisors would be \rho_0 = \alpha - \beta\psi_0 = \delta(\xi - \eta\psi_0). With either choice, the process is repeated as above until the greatest common right or left divisor is identified. As in the Euclidean domain, the "size" of the remainder (formally, its Euclidean function or "norm") must be strictly smaller than , and there must be only a finite number of possible sizes for , so that the algorithm is guaranteed to terminate. Many results for the GCD carry over to noncommutative numbers. For example, Bézout's identity states that the right can be expressed as a linear combination of and . In other words, there are numbers and such that \Gamma_\text{right} = \sigma\alpha + \tau\beta. The analogous identity for the left GCD is nearly the same: \Gamma_\text{left} = \alpha\sigma + \beta\tau. Bézout's identity can be used to solve Diophantine equations. For instance, one of the standard proofs of Lagrange's four-square theorem, that every positive integer can be represented as a sum of four squares, is based on quaternion GCDs in this way.

References

No reference rows published for this article.

Cite this article

MLA

"Euclidean algorithm." encyclopegia.org, 2026, https://encyclopegia.org/wiki/euclidean-algorithm. Accessed 24 November 2026.

Chicago

"Euclidean algorithm." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/euclidean-algorithm.

APA

encyclopegia.org. (2026). Euclidean algorithm. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/euclidean-algorithm

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Claims

PredicateValueSource
publication date1844Wikipedia
publication date1994Wikipedia

Related articles

Euclidean division

stub · references available

non-Euclidean geometry

stub · references available

μ-law algorithm

stub · references available

bitap algorithm

stub · references available

QR algorithm

stub · references available

Prim's algorithm

stub · references available

greedy algorithm

stub · references available

Apriori algorithm

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1375335874 · 0.5 · snapshot enwiki-001375335874

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.