Number Theory • Topic 14
Modular Inverses
Division is not directly defined in modular arithmetic. Instead, we multiply by the modular inverse.
Definition
Definition (Modular Inverse)
The inverse of modulo , denoted or , is an integer such that:
Existence and Uniqueness
- Existence: exists if and only if .
- Uniqueness: If it exists, it is unique modulo .
Computation Methods
1. Extended Euclidean Algorithm
Solve for integers . Then , so .2. Fermat's Little Theorem (for prime moduli)
If is prime and :
Thus, .
3. Euler's Theorem
For general : .Practice Problems
Exercise (Problem 1)
Find the inverse of 3 modulo 7.
Exercise (Problem 2)
Solve using the Extended Euclidean Algorithm.
Exercise (Problem 3)
Compute using Fermat's Little Theorem.