I have to calculate the gcd of $f=X^3 +9X^2 +10X +3$ and $g= X^2 -X -2$ in $\mathbb{Q}[X]$ and $\mathbb{Z}/5\mathbb{Z}$.
In $\mathbb{Q}[X]$ I got that $X+1$ is a gcd and therefore $r(X+1)$ since $\mathbb{Q}$ is a field.
But I dont know how to do polynomial division in $\mathbb{Z}/5\mathbb{Z}$. Can somebody please help me?
Thank you!
You got the GCD in $\mathbb Z[X]$, i.e. $X+1$. The GCD in $\mathbb Z / 5 \mathbb Z[X]$ is obtained by reducing each coefficient of the GCD in $\mathbb Z$ in $\mathbb Z / 5 \mathbb Z$.
Which means that the GCD in $\mathbb Z / 5 \mathbb Z[X]$ is equal to $\bar{1}X + \bar{1} = X + \bar{1}$.