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=225 and b=67309:
abqr s1s2s3 t1t2t3
225673090225101010
673092252993401-299101
225346211-299179501-6
3421113-2991795-20941-67
2113181795-20943889-67-13
13815-20943889-59837-1320
85133889-59839872-1320-33
5312-59839872-1585520-3353
32119872-1585525727-3353-86
2120-1585525727-6730953-86225
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: