I know that $\mathbb Z_2[x]/\langle x^3 + x + 1\rangle$ is a field since $x^3 + x + 1$ is irreducible in $\mathbb Z_2$. But I still can't seem to find any inverse element for $x^2 + x + 1$. I want to find an element $g(x) \in \mathbb Z_2[x]/\langle x^3 + x + 1\rangle$ such that $(x^2 + x + 1)g(x) = 1$. I've tried multiplying every single element of $\mathbb Z_2[x]/\langle x^3 + x + 1\rangle$ by $x^2 + x + 1$, but I never seem to get any of them to be equal to 1 or equivalent. How is this possible if $\mathbb Z_2[x]/\langle x^3 + x + 1\rangle$ is a field?
Thanks in advance.