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=521 and b=426109:
abqr s1s2s3 t1t2t3
5214261090521101010
42610952181745201-817101
5214521691-81781801-1
45269638-817818-57251-17
6938131818-57256543-17-8
383117-57256543-122687-815
317436543-1226855615-815-68
7321-1226855615-12349815-68151
313055615-123498426109-68151-521
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: