Euclidean Algorithm

Peter D. Schumer · 2024

Abstract The ancient algorithm for calculating the greatest common divisor of two numbers is explained. Further, examples are given to show that the greatest common divisor of two numbers can be written as a linear combination of the two numbers. Two integers are relatively prime if and only the number 1 can be written as a linear combination of them. The Euclidean algorithm can also be used to calculate the least common multiple of two numbers. Finally, the arithmetic inverse of an integer modulo n is introduced in order to help facilitate the solution of linear congruences.

Cited by 0 works. doi:10.1093/9780198916567.003.0005

Authors

References