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=776 and b=121411:
abqr s1s2s3 t1t2t3
7761214110776101010
12141177615635501-156101
7763552661-15631301-2
35566525-156313-17211-211
6625216313-17213755-211-24
251619-17213755-547611-2435
169173755-54769231-2435-59
9712-54769231-1470735-5994
72319231-1470753352-5994-341
2120-1470753352-12141194-341776
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: