I have a polynomial ring $\mathcal{R} = \mathbb{Z}_3[x]/(x^2+x+2)$ and I am supposed to find a generator of the multiplicative group of $\mathcal{R}$.
Well, I know that the $\vert \mathcal{R} \vert = 9$, therefore the number of elements of the multiplicative group is $9-1 = 8$ and that the elements $f(x)\in$ $\mathcal R$ are $[f(x)]=\{g(x) \in \mathbb Z_3 \mid g(x) \equiv f(x)$ mod $(x^2+x+2) \}$. Though I do not know how to find the generator instead of brute-forcing. Is there a smart way to do it? Thank you in advance.
Write down explicitly:
$$\mathcal R^*=\left\{\,1,\,2,\,w,\,w+1,\,w+2,\,2w,\,2w+1,\,2w+2\,\right\}\;,\;\;\text{with}$$
$$w^2=-w-2=2w+1\pmod 3$$
Now, for example (all the operations are carried on modulo $\;3\;$ ):
$$\begin{align*}&w\\ &w^2=2w+1\\ &w^3=w(2w+1)=2w^2+w=2(2w+1)+w=w+2+w=2w+2\\ &w^4=w(w^3)=2w^2+2w=2(2w+1)+2w=w+2+2w=2=-1\end{align*}$$
Thus, we have already an element of order $\;8\;$ (why?) . You can now find all four elements of order 8 (how?)