Is every ideal in $\Bbb Z[x]/(x^3-1)$ principal?
Edit: $\Bbb Z[x]/(x^3-1)$ is not isomorphic to $\Bbb Z[x]/(x-1) \oplus \Bbb Z[x]/(x^2+x+1)$ (by a modulo $3$ argument)
Is every ideal in $\Bbb Z[x]/(x^3-1)$ principal?
Edit: $\Bbb Z[x]/(x^3-1)$ is not isomorphic to $\Bbb Z[x]/(x-1) \oplus \Bbb Z[x]/(x^2+x+1)$ (by a modulo $3$ argument)
The ideal $I=(3,x-1)$ of the ring $R=\Bbb{Z}[x]/(x^3-1)$ is not principal.
Assume contariwise that the coset of $p=a+bx+cx^2$ would generate $I$. Let $J$ be the ideal generated by $p$. As an abelian group it is generated by $p=a+bx+cx^2$, $xp=c+ax+bx^2$ and $x^2p=b+cx+ax^2$. Consider the matrix $$ M=\left(\begin{array}{ccc}a&b&c\\c&a&b\\b&c&a\end{array}\right). $$ The index of $J$ in $R$ (if finite) is $|\det M|=|a^3+b^3+c^3-3abc|$ (by the basic theory of finitely generated abelian groups, most notably invariant factors and such).
A brute force check modulo $9$ shows that whenever $3\mid \det M$ we also have $9\mid\det M$. Therefore $|\det M|\neq3$, $|R/J|\neq3$.
But $R/I\simeq \Bbb{Z}_3$, so $J\neq I$.