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:

a=
b=


Output

This is the output of the Extended Euclidean Algorithm using the numbers a=974 and b=109237:
abqr s1s2s3 t1t2t3
9741092370974101010
10923797411214901-112101
9741496801-11267301-6
14980169-112673-7851-67
8069111673-7851458-67-13
691163-7851458-95337-1385
113321458-953330057-1385-268
3211-953330057-3959085-268353
212030057-39590109237-268353-974
Answer

So we found that:

Verification
If our answer is correct, then the absolute value of s × a + t × b is equal to the gcd of a and b. We have: