Suppose that $f(x)\in\Bbb Z_p [x]$ is irreducible, where $p$ is a prime. If $\deg f(x)=n$,show that $\Bbb Z_p [x]/〈f(x)〉$ is a field with $p^n$ elements.
I've seen plenty of cases, looking at a particular $p$ and a particular $f(x)$, but cannot seem to grasp the general solution.
Hint : Since $f$ is irreducible, $\frac{\mathbb{Z}_p[x]}{(f(x))}$ is a field. By using division algorithm in $\mathbb{Z}_p[x]$ prove that $\frac{\mathbb{Z}_p[x]}{(f(x))}$ has dimension $n$ over $\mathbb{Z}_p$ and we are done.