Polynomial division algorithm · Exercise-POLYNOMIAL-DIVISION-ALGORITHM-005

Step-by-step solved exercise: Polynomials and fields

In \(\displaystyle \mathbb{Z}_5[x]\), what are the quotient \(\displaystyle q\) and remainder \(\displaystyle r\) of dividing \(\displaystyle x^{3} + 2 x + 1\) by \(\displaystyle 2 x + 3\)?

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

Step-by-step solution

  1. In \(\displaystyle \mathbb{Z}_5\), the inverse of 2 is 3, because \(\displaystyle 2\cdot 3=6\equiv 1\).

    \[\displaystyle 2^{-1}=3 \text{ en } \mathbb{Z}_5\]
  2. Factor \(\displaystyle 2x+3=2(x+4)\), since \(\displaystyle 8\equiv 3\) mod 5.

    \[\displaystyle 2x+3=2(x+4)\]
  3. Divide \(\displaystyle x^3+2x+1\) by \(\displaystyle x+4\): the remainder is 4 and the quotient is \(\displaystyle x^2+x+3\).

    \[\displaystyle x^3+2x+1=(x+4)(x^2+x+3)+4\]
  4. Multiply the quotient by 3 to return to the divisor \(\displaystyle 2x+3\); the remainder 4 does not change.

    \[\displaystyle q=3(x^2+x+3)=3x^2+3x+9\equiv 3x^2+3x+4,\quad r=4\]

    Comment: Check: \(\displaystyle (2x+3)(3x^2+3x+4)+4\equiv x^3+2x+1\) in \(\displaystyle \mathbb{Z}_5\).

Answer

\(\displaystyle q=3 x^{2} + 3 x + 4,\ r=4\)

🎯 Build my path to this exercise