Question
Find the inverse of modulo with the extended Euclidean algorithm.
Solution
We look for with . The extended Euclidean algorithm on gives the linear combination Reducing modulo : , that is , and . Check: The inverse is .
Links
Topics: Probability distributions
Concepts: Modular arithmetic
Methods: Modular arithmetic
Skills: Computing
Exercise type: Expression evaluation