Euclidean domain · Exercise-EUCLIDEAN-DOMAIN-004

Step-by-step solved exercise: Polynomials and fields

In \(\displaystyle \mathbb{Z}\), use the Euclidean algorithm to compute \(\displaystyle \gcd(252,198)\).

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

Step-by-step solution

  1. Divide 252 by 198: the remainder is 54.

    \[\displaystyle 252 = 1\cdot 198 + 54\]
  2. Divide 198 by 54: the remainder is 36.

    \[\displaystyle 198 = 3\cdot 54 + 36\]
  3. Divide 54 by 36: the remainder is 18.

    \[\displaystyle 54 = 1\cdot 36 + 18\]
  4. Divide 36 by 18: the remainder is 0, so the last nonzero remainder, 18, is the gcd.

    \[\displaystyle 36 = 2\cdot 18 + 0,\quad \gcd(252,198)=18\]

Answer

\(\displaystyle 18\)

🎯 Build my path to this exercise