The Euclidean algorithm keeps the GCD by repeatedly applying the step for nonnegative and positive . This replaces the pair with the divisor and the remainder, preserving the greatest common divisor.
Conditions: is a nonnegative integer.; is a positive integer.; The operation computes the remainder of divided by .
The Euclidean algorithm keeps the GCD by repeatedly applying the step for nonnegative and positive . This replaces the pair with the divisor and the remainder, preserving the greatest common divisor.
Conditions: is a nonnegative integer.; is a positive integer.; The operation computes the remainder of divided by .