For $f(x)=x^4+x^3+x^2+x+1 \in \mathbb{Z}_5[x]$, I have found that $1$ is a zero of this polynomial, so by the factor theorem I know that for some $q(x) \in \mathbb{Z}_5[x]$ I should have $f(x)=(x-1)q(x)$. My trouble is, when I try the division algorithm I will always get a remainder of $1$.
How can I look for an explicit factorization of this polynomial?
$$x^4+x^3+x^2+x+1=\frac{x^5-1}{x-1}$$ But modulo $5$, $x^5-1\equiv (x-1)^5$. Therefore over the field of five elements, $$x^4+x^3+x^2+x+1=(x-1)^4.$$