Greatest common divisor · Exercise-GREATEST-COMMON-DIVISOR-001
Step-by-step solved exercise: Recurrences and arithmetic
Compute \(\displaystyle \gcd(12,18)\).
Greatest common divisor · Exercise-GREATEST-COMMON-DIVISOR-001
Compute \(\displaystyle \gcd(12,18)\).
List the positive divisors of \(\displaystyle 12\).
List the positive divisors of \(\displaystyle 18\).
Identify the divisors that appear in both lists.
The largest common divisor is the greatest common divisor. Therefore, \(\displaystyle \gcd(12,18)=6\).
Comment: The least common multiple, 36, is a different quantity.
6