Extended Euclid’s algorithm
The extended Euclid’s algorithm can be used to find a pair
Modular multiplicative inverse
To calculate the inverse of
- Create an equation in the form of
. - Create a new equation where
and - Continue until
- Convert each equation to the form
- Starting from the equation where
, substitute your values slowly working upwards - In the final steps, any
s disappear and .