Definition 4.5.1 Greatest common divisor.
Β
-
For integers \(a\) and \(b\text{,}\) a common divisor of \(a\) and \(b\) is an integer \(d\) such that \(d \mid a\) and \(d \mid b\text{.}\) For example, the integer three is a common divisor of 12 and 18.
-
For integers \(a\) and \(b\text{,}\) not both 0, the greatest common divisor of \(a\) and \(b\text{,}\) denoted \(\str{gcd}\)\((a,b)\text{,}\) is the largest integer dividing both \(a\) and \(b\text{.}\) For example, in ExampleΒ 4.5.2 we show that \(\str{gcd}\)\((4,6)= 2\) and \(\str{gcd}\)\((6,15)=3\text{.}\)
-
Note that the integer one is always a common divisor of any integers \(a\) and \(b\text{,}\) and so \(\gcd(a,b)\ge 1\text{.}\) It is possible for \(\gcd(a,b)=1\) if \(\pm 1\) are the only common divisors of \(a\) and \(b\text{.}\) If \(\gcd(a,b)=1\text{,}\) then \(a\) and \(b\) are coprime (or relatively prime). For example, in ExampleΒ 4.5.2 we show that 4 and 15 are coprime. Recall that a fraction is in lowest terms if its numerator and denominator are coprime, as in DefinitionΒ 4.1.16.
