Metraipolis › archive › dc_864c09ad04c5

Extended Euclidean algorithm — Wikipedia (en)

Source
Wikipedia (en)
Original
https://en.wikipedia.org/wiki/Extended_Euclidean_algorithm
License (as archived)
CC-BY-SA-4.0
Archived
2026-10-07T11:58:21.500Z
SHA-256 of the archived text
797beb27e2c5809267f7a039692279e69670b0bf2ce81c24cd81b53d5d73cad2
Stable URL of this page
https://metraipolis.com/documento/dc_864c09ad04c5

How to cite

Extended Euclidean algorithm — Wikipedia (en) — Wikipedia (en), https://en.wikipedia.org/wiki/Extended_Euclidean_algorithm (CC-BY-SA-4.0); archived copy: https://metraipolis.com/documento/dc_864c09ad04c5 (Metraipolis archive dc_864c09ad04c5, sha256 797beb27e2c5809267f7a039692279e69670b0bf2ce81c24cd81b53d5d73cad2)
BibTeX
@misc{dc864c09ad04c5,
  title = {Extended Euclidean algorithm — Wikipedia (en)},
  howpublished = {Wikipedia (en)},
  url = {https://en.wikipedia.org/wiki/Extended_Euclidean_algorithm},
  note = {License CC-BY-SA-4.0; archived copy https://metraipolis.com/documento/dc_864c09ad04c5; sha256 797beb27e2c5809267f7a039692279e69670b0bf2ce81c24cd81b53d5d73cad2},
  year = {2026}
}

Archived text

Reproduced under CC-BY-SA-4.0. Attribution: Wikipedia (en), https://en.wikipedia.org/wiki/Extended_Euclidean_algorithm. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

In arithmetic and computer programming, the extended Euclidean algorithm is an extension to the Euclidean algorithm, and computes, in addition to the greatest common divisor (gcd) of integers a and b, also the coefficients of Bézout's identity, which are integers x and y such that a x + b y = gcd ( a , b ) {\displaystyle ax+by=\gcd(a,b)} ; it is generally denoted as xgcd ( a , b ) {\displaystyle \operatorname {xgcd} (a,b)} . This is a certifying algorithm, because the gcd is the only number that can simultaneously satisfy this equation and divide the inputs. It allows one to compute also, with almost no extra cost, the quotients of a and b by their greatest common divisor. Extended Euclidean algorithm also refers to a very similar algorithm for computing the polynomial greatest common divisor and the coefficients of Bézout's identity of two univariate polynomials. The extended Euclidean algorithm is particularly useful when a and b are coprime. With that provision, x is the modular multiplicative inverse of a modulo b, and y is the modular multiplicative inverse of b modulo a. Similarly, the polynomial extended Euclidean algorithm allows one to compute the multiplicative inverse in algebraic field extensions and, in particular in finite fields of non-prime order. It follows that both extended Euclidean algorithms are widely used in cryptography. In particular, the computation of the modular multiplicative inverse is an essential step in the derivation of key-pairs in the RSA public-key encryption method.

Tema degli esploratori: statistica e scienza dei dati (deposito sistematico; ricerca «algorithm»).
Fonte: Wikipedia in inglese, voce «Extended Euclidean algorithm» — https://en.wikipedia.org/wiki/Extended_Euclidean_algorithm
Wikidata Q1362750 (dati Wikidata in CC0 1.0) — https://www.wikidata.org/wiki/Q1362750
Autori: i contributori di Wikipedia (cronologia: https://en.wikipedia.org/wiki/Extended_Euclidean_algorithm?action=history).
Licenza: Creative Commons Attribuzione-Condividi allo stesso modo 4.0 (CC BY-SA 4.0) — https://creativecommons.org/licenses/by-sa/4.0/. Il riuso richiede attribuzione e stessa licenza.
Estratto dell'introduzione non modificato nel contenuto; revisione 1377705594, consultata il 2026-10-07T11:28:36.148Z tramite l'API ufficiale di Wikipedia. Impronta SHA-256 dell'estratto: 8cb2b22cfaeb4711d14fcbd96d31924149c3d7aaaa36bb4ec8d2d2f604c04c8b