Section 3.3
The greatest common divisor of \(a\) and \(b\) is the largest natural number \(d\) such that \(d\) divides both \(a\) and \(b\).
We denote it as \(d = \gcd(a, b)\)
Special case: \(a\), \(b\) called relatively prime, if \(\gcd(a, b) = 1\)
Similar definition: least common multiple
Work out some examples!
Most direct way: Find all divisors of each number, find the commons ones, pick largest.
Other option: Factor each number into primes, take the primes both numbers have in common.
For prime numbers, things are easier:
If \(p\) is prime and \(n\) is any integer, then \(p\) does not divide \(n\) if and only if \(\gcd(p, n) = 1\).
Proof:
Another important result has to do with factoring out the greatest common divisor:
If \(\gcd(a, b) = 1\) and \(x\), \(y\) are such that \(a = d x\) and \(b = d y\), then \(\gcd(x, y) = 1\).
Proof: