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=789 and b=511:
abqr s1s2s3 t1t2t3
789511127810101-1
511278123301-11-12
2782331451-12-12-3
2334558-12-112-317
458552-1157-317-88
8513-1157-6817-88105
531257-68125-88105-193
3211-68125-193105-193298
2120125-193511-193298-789
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: