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

Step-by-step solved exercise: Recurrences and arithmetic

Compute \(\displaystyle \gcd(48,180)\).

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

Step-by-step solution

  1. Factor \(\displaystyle 48\) into primes.

    \[\displaystyle 48=2^4\cdot 3\]
  2. Factor \(\displaystyle 180\) into primes.

    \[\displaystyle 180=2^2\cdot 3^2\cdot 5\]
  3. The common primes are \(\displaystyle 2\) and \(\displaystyle 3\). Take the smaller exponent of each.

    \[\displaystyle \min(4,2)=2,\quad \min(1,2)=1\]
  4. Multiply the selected powers. Therefore, \(\displaystyle \gcd(48,180)=12\).

    \[\displaystyle \gcd(48,180)=2^2\cdot 3=12\]

Answer

12

🎯 Build my path to this exercise