UFD implies GCDs exist: Let RR be a UFD and let a,b∈Ra,b\in R be not both zero. Then there exists d∈Rd\in R such that (i) d∣ad\mid a and d∣bd\mid b, and (ii) if c∣ac\mid a and c∣bc\mid b then c∣dc\mid d. Any two such dd differ by multiplication by a unit; one writes d=gcd⁡(a,b)d=\gcd(a,b).

Remarks

In a , write aa and bb as products of and take the product of the common primes with minimal exponents to obtain a . Uniqueness is up to , and in a UFD prime elements coincide with .