Greatest Common Divisor
The greatest common divisor of two integers and , written , is the largest positive integer that divides both and .
The Euclidean algorithm computes the GCD efficiently: , terminating when the remainder reaches zero. This algorithm also yields a representation for some integers and (Bézout’s identity).
In the divisibility lattice on positive integers, is the meet of and .