In modular arithmetic, addition, subtraction, and multiplication are all easy. Division is subtle.
Theorem (Modular Inversion)
The number is invertible if and only if . In this case, an inverse of is the Bezout coefficient for is the identity
Or that is an inverse of .
Example 1
Which of the following are invertible ?
So, we can see that , so it cannot be invertible. Then since both are even. Finally, . None are invertible.
Example 2
Find an inverse of if possible. So, by the Euclidean Algorithm,
And so the remainder is , and so . Now, using Bezout to find ,
Then,
Thus, , which is the inverse.