Calculate the modular multiplicative inverse using Extended Euclidean Algorithm
Enter two integers to find the modular multiplicative inverse. The inverse of a modulo m exists only when gcd(a, m) = 1.
Enter a positive integer
Enter a positive integer greater than 1
Explore different scenarios with pre-calculated examples
Find the inverse of 3 modulo 11
Number (a): 3
Modulus (m): 11
Algorithm: Extended Euclidean Algorithm
Calculate inverse for RSA encryption (small example)
Number (a): 7
Modulus (m): 40
Algorithm: Extended Euclidean Algorithm
Inverse calculation with larger values
Number (a): 123
Modulus (m): 457
Algorithm: Extended Euclidean Algorithm
Example where no inverse exists
Number (a): 6
Modulus (m): 9
Algorithm: Extended Euclidean Algorithm