I'm looking for the necessary and sufficient conditions for any prime $p$ and any positive integer $n$ to make the quotient rings $\mathbb{Z}_p[x]/(x^n+1)$ and $\mathbb{Z}_p[x]/(x^n-1)$ not only rings but fields.
I know that the quotient ring $\mathbb{Z}_p[x]/f(x)$ is a field if and only if $f(x)$ is irreducible over $\mathbb{Z}_p$:
- Then $\mathbb{Z}_p[x]/(x^n-1)$ can never be a field, as $1$ is a root of $x^n-1$ in $\mathbb{Z}_p[x]$, making it reducible, am I right?
For $\mathbb{Z}_p[x]/(x^n+1)$:
2.1. If $n\geq p$, then $f(x)=x^n+1$ might have a root in $\mathbb{Z}_p$, as one of the two following cases happens: either (a) all integers in $\mathbb{Z}_p^*$ are roots of $f(x)$, or (b) there is a monic polynomial $g(x)$ such that $g(x)\equiv 0 (\text{mod }p)$ with $\text{deg}(g)<p$ and the solutions of $g(x)\equiv 0(\text{mod }p)$ are the solutions of $f(x)\equiv 0 (\text{mod }p)$. Note: In (b), if the equation $g(x)\equiv 0(\text{mod }p)$ has no solutions, then $f(x)\equiv 0(\text{mod }p)$ has no solutions as well.
2.2. If $n<p$, then for all integers $a$ with $\gcd(a,p)=1$, we have that $x^n\equiv a(\text{mod }p)$ has exactly $\gcd(n,p-1)$ solutions if $$a^{\frac{p-1}{\gcd(n,p-1)}}\equiv 1(\text{mod }p),$$ or no solution at all if $$a^{\frac{p-1}{\gcd(n,p-1)}}\not\equiv 1(\text{mod }p).$$ Then by taking $a=p-1$, we have that $x^n+1\equiv 0(\text{mod }p)$ which is equivalent to $x^n\equiv p-1(\text{mod }p)$ has exactly $\gcd(n,p-1)$ solutions if $$(-1)^{\frac{p-1}{\gcd(n,p-1)}}\equiv 1(\text{mod }p),$$ or no solutions at all if $$(-1)^{\frac{p-1}{\gcd(n,p-1)}}\not\equiv 1(\text{mod }p).$$
My questions are:
- Just to be sure, $\mathbb{Z}_p[x]/(x^n-1)$ is never a field, right?
- Is there any easier criteria or direct theorem I'm missing for the case $\mathbb{Z}_p[x]/(x^n+1)$ which could give me a more straight-forward condition for $p$ and $n$?
Thank you.