Calculator
For the Euclidean Algorithm, Extended Euclidean Algorithm and multiplicative inverse.
Before you use this calculator
If you're used to a different notation, the output of the calculator might confuse you at first.
Even though this is basically the same as the notation you expect. If that happens, don't panic.
Just make sure to have a look the following pages first and then it will all make sense:
- Euclidean Algorithm
For the basics and the table notation - Extended Euclidean Algorithm
Unless you only want to use this calculator for the basic Euclidean Algorithm. - Modular multiplicative inverse
in case you are interested in calculating the modular multiplicative inverse of a number modulo n
using the Extended Euclidean Algorithm
Input
Choose which algorithm you would like to use.
Enter the input numbers. Note that you need to enter n before b.
E.g. if you want to know the multiplicative inverse of 26 mod 11, then use n=11 and b=26.
Output
This is the calculation for finding the multiplicative inverse of 10 mod 4294967296 using the Extended Euclidean Algorithm:n | b | q | r | t1 | t2 | t3 |
---|---|---|---|---|---|---|
4294967296 | 10 | 429496729 | 6 | 0 | 1 | -429496729 |
10 | 6 | 1 | 4 | 1 | -429496729 | 429496730 |
6 | 4 | 1 | 2 | -429496729 | 429496730 | -858993459 |
4 | 2 | 2 | 0 | 429496730 | -858993459 | 2147483648 |
The gcd(n, b) = gcd(4294967296, 10) = 2. This is not equal to 1, so 10 has no multiplicative inverse modulo 4294967296.
Verification10 has no multiplicative inverse mod 4294967296, so there's nothing to verify.