UFD implies GCDs exist
In a unique factorization domain, any two elements admit a gcd unique up to associates.
UFD implies GCDs exist
UFD implies GCDs exist: Let be a UFD and let be not both zero. Then there exists such that (i) and , and (ii) if and then . Any two such differ by multiplication by a unit; one writes .
In a unique factorization domain , write and as products of prime elements and take the product of the common primes with minimal exponents to obtain a greatest common divisor . Uniqueness is up to associates , and in a UFD prime elements coincide with irreducible elements .