Bootstrap
  E.E.A. .com
It doesn't have to be difficult if someone just explains it right.

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:


Input

Algorithm

Choose which algorithm you would like to use.

Numbers

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.

n=
b=


Output

This is the calculation for finding the multiplicative inverse of 547 mod 928 using the Extended Euclidean Algorithm:
nbqr t1t2t3
928547138101-1
54738111661-12
381166249-12-5
166493192-517
4919211-517-39
19111817-3956
11813-3956-95
832256-95246
3211-95246-341
2120246-341928
Answer

So t = -341. Now we still have to apply mod n to that number:
-341 mod 928 ≡ 587
So the multiplicative inverse of 547 modulo 928 is 587.

Verification

Let i be the answer we just found, so i=587. We also have b=547 and n=928.
If our answer is correct, then i × b (mod n) ≡ 1 (mod n).
Let's see if that's indeed the case.
i × b (mod n) ≡
587 × 547 (mod 928) ≡
321089 (mod 928) ≡
1 (mod 928)