I am asked to find the gcd of $x^4 + 2x^3 + x + 1$ and $x^5 + 2x^3 + x^2 + x + 1$ in $F_3[x]$ (polynomials in $\mathbb Z/3\mathbb Z)$.
Using Euclid's Algorithm, I first divided $x^4 + 2x^3 + x + 1$ into $x^5 + 2x^3 + x^2 + x + 1$ to get $x + 1$ remainder $2x$. I then divided $2x$ into $x^4 + 2x^3 + x + 1$ to get $2x^3 + x^2 + 2$, remainder $1$, indicating that the gcd is 1. However, in the back of the text, the answer is that the gcd is $x^2 + 1$. Is there something here that I'm not understanding correctly? I've looked over the actual long division multiple times and I can't spot an error.