Define the multiplicative inverse in modular arithmetic and identify the multiplicative inverse of 6 mod 13 while explaining the algorithm used.
The multiplicative inverse of a number x modulo m is a number y such that
and we write
The algorithm used for finding the inverse is known as Euclid's algorithm - it's a means of deducing the GCD of two given integers. In this case, we want to find x such that
We have
(the remainder term here is the GCD)
Now,
and taken mod 13, we have
so the inverse of 6 mod 13 is 11. Indeed,
Comments