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

Step-by-step solved exercise: Recurrences and arithmetic

Compute \(\displaystyle \gcd(0,9)\).

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

Step-by-step solution

  1. Every integer \(\displaystyle d\) divides \(\displaystyle 0\), because \(\displaystyle 0=d\cdot 0\).

    \[\displaystyle 0=d\cdot 0\]
  2. Therefore, the common divisors of \(\displaystyle 0\) and \(\displaystyle 9\) are exactly the divisors of \(\displaystyle 9\).

    \[\displaystyle D(0)\cap D(9)=D(9)\]
  3. The positive divisors of \(\displaystyle 9\) are \(\displaystyle 1\), \(\displaystyle 3\) and \(\displaystyle 9\). Therefore, \(\displaystyle \gcd(0,9)=9\).

    \[\displaystyle \gcd(0,9)=9\]

Answer

9

🎯 Build my path to this exercise