Greatest common divisor
A divisor d of a and b that is divisible by every common divisor (defined up to associates).
Greatest common divisor
Let be an integral domain and let . A greatest common divisor of and is an element such that:
- and , and
- if and , then .
A gcd is unique up to associates (so one often fixes a “normal form” when possible). When gcds exist for all pairs, one can define lcms and obtain identities relating gcd and lcm .
Examples:
- In , .
- In , a gcd of and is (up to nonzero rational scalars).
- For any , a gcd of and is (up to associates).