Greatest common divisor · Exercise-GREATEST-COMMON-DIVISOR-001

Step-by-step solved exercise: Recurrences and arithmetic

Compute \(\displaystyle \gcd(12,18)\).

Step by step with comments, a check and common mistakes.

Step-by-step solution

  1. List the positive divisors of \(\displaystyle 12\).

    \[\displaystyle D(12)=\{1,2,3,4,6,12\}\]
  2. List the positive divisors of \(\displaystyle 18\).

    \[\displaystyle D(18)=\{1,2,3,6,9,18\}\]
  3. Identify the divisors that appear in both lists.

    \[\displaystyle D(12)\cap D(18)=\{1,2,3,6\}\]
  4. The largest common divisor is the greatest common divisor. Therefore, \(\displaystyle \gcd(12,18)=6\).

    \[\displaystyle \gcd(12,18)=6\]

    Comment: The least common multiple, 36, is a different quantity.

Answer

6

🎯 Build my path to this exercise