Let the polynomial $$k(x) = x^3 + 2x + 1 \in \mathbb{Z}_3[x]$$ Let $R = \mathbb{Z}_3[x]/(k(x))$ be the ring of equivalence classes in $\mathbb{Z}_3[x]$ modulo $k(x)$. As usual, we represent each equivalence class by the polynomial of lowest degree and positive coefficients (so, for example, $[x + 2]$ denotes the equivalence class that contains the polynomial $x + 2$). The answer must be represented in this way.
Is $[x]$ a primitive element in $R$?
In the solution they found that the number of elements in the multiplicative group is 26 and thus concluded that the possible orders are $x^{k}$ where $k=1,2,13,26$ because of Langrange theorem.
My question is how does $x^{k}=1$ guarantee that it is the primitive element since the definition of primitive element is an element who can generate the entire multiplicative group except $0$. I don't really see the correlation.