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
a: 3
m: 11
algorithm: extendedEuclidean
Calculate inverse for RSA encryption (small example)
a: 7
m: 40
algorithm: extendedEuclidean
Inverse calculation with larger values
a: 123
m: 457
algorithm: extendedEuclidean
Example where no inverse exists
a: 6
m: 9
algorithm: extendedEuclidean