How to calculate
For prime p, aᵖ and a have the same remainder modulo p. If a is coprime to p, aᵖ⁻² is a modular inverse of a.
Worked example
Use Base a 7 · Prime modulus p 13 · Mode Evaluate the congruence. The result is 7.
Input and result notes
Enter a prime modulus from 2 through one trillion.