Euclid’s Algorithm

|

What’s the greatest common divisor (gcd) of X and Y? It turns out there’s a nice algorithm for calculating this – the Euclidean Algorithm.

Common Divisor Divides Integer Combination

Let be an integral domain.

Let be a common divisor of two elements and of , i.e.:

Then:

Proof:

GCD with Remainder

Let .

Let such that .

Then .

Proof:

And so .