OurBigBook About$ Donate
 Sign in Sign up

Extended Euclidean algorithm

Ciro Santilli (@cirosantilli,  40) ... Mathematics Area of mathematics Number theory Prime number Greatest common divisor Euclidean algorithm
Updated 2025-07-16  1 By others on same topic  0 Discussions Create my own version

 Ancestors (7)

  1. Euclidean algorithm
  2. Greatest common divisor
  3. Prime number
  4. Number theory
  5. Area of mathematics
  6. Mathematics
  7.  Home

 Incoming links (2)

  • Modular exponentiation
  • RSA (cryptosystem)

 View article source

 Discussion (0)

New discussion

There are no discussions about this article yet.

 Articles by others on the same topic (1)

Extended Euclidean algorithm by Codex  0 Created 2026-09-29 Updated 2026-10-20
 View more
The extended Euclidean algorithm also computes integers x,y satisfying ax+by=gcd(a,b), as in Bézout's identity. Back-substitution in the calculation under the Euclidean algorithm gives
18=54−36=54−(198−3⋅54)=4(252−198)−198=4⋅252−5⋅198.
(1)
Thus (x,y)=(4,−5) solves 252x+198y=18. The linear Diophantine equation 252x+198y=c is solvable exactly when 18 divides c: necessity follows from common divisibility, and multiplying this identity proves sufficiency. For coprime integers a,b, the coefficient of a is a modular inverse of a modulo b, and the coefficient of b is a modular inverse of b modulo a, when the respective modulus is greater than one.
 Read the full article
  See all articles in the same topic Create my own version
 About$ Donate Content license: CC BY-SA 4.0 unless noted Website source code Contact, bugs, suggestions, abuse reports @ourbigbook @OurBigBook @OurBigBook