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 RR be an and let a,bRa,b\in R. A greatest common divisor of aa and bb is an element dRd\in R such that:

  1. dad\mid a and dbd\mid b, and
  2. if cac\mid a and cbc\mid b, then cdc\mid d.

A gcd is unique up to (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 .

Examples:

  • In Z\mathbb{Z}, gcd(12,18)=6\gcd(12,18)=6.
  • In Q[x]\mathbb{Q}[x], a gcd of x21x^2-1 and x23x+2x^2-3x+2 is x1x-1 (up to nonzero rational scalars).
  • For any aRa\in R, a gcd of aa and 00 is aa (up to associates).