Extended Euclidean algorithm
Summary
The extended Euclidean algorithm computes the greatest common divisor of two integers and , and also integers and such that . It does the steps of the Euclidean algorithm. At each step, it writes the new remainder as an integer combination of and .
Remarks
The coefficients and prove Bézout's identity for and . When , the coefficient of is a modular multiplicative inverse of modulo .
Explanations
L1 human
For and , the Euclidean algorithm gives and . Put the first equation into the second: . So and give .
What this node needs for W1
- an inventory row: the row of the inventory that the node accounts for (0 of 1)
The writing levels say how complete the text of a node is. They do not measure its truth.
Sources
What links here
No node links to this node yet.