...where $ \textbf{Z}_p $ is the ring of residue classes $ (\text{mod } p) $ and $ p\in\textbf{P} $.
As an exercise, we're supposed to prove in detail the following lemma used in the proof of the theorem:
Suppose $ f $ is a polynomial of degree $ n\geq2 $ with coefficients in $ \textbf{Z}_p $ and $ [a]\in\textbf{Z}_p $. Now if $ f([a])=[0] $, there exists a polynomial $ g $ of degree $ n-1 $ (with coefficients in $ \textbf{Z}_p $) such that $$ f([x])=([x]-[a])g([x]). $$
I'm certain the identity $$ [x]^n-[a]^n=([x]-[a])\left([x]^{n-1}+[x]^{n-2} [a]+\ldots+[a]^{n-1}\right) $$ will be of great use here, but I've hard time getting started.
Any help would be appreciated.
If $f(x)\bmod p$ is a polynomial of degree $n\ge 2$ and $f(a)\equiv 0\pmod{p}$, then ($b_i\not\equiv 0$ are reduced mod $p$):
$$f(x)\equiv f(x)-f(a)$$
$$\equiv b_nx^n+b_{n-1}x^{n-1}+\cdots + b_1x+b_0-b_na^n-b_{n-1}a^{n-1}-\cdots -b_1a-b_0$$
$$\equiv b_n\left(x^n-a^n\right)+b_{n-1}\left(x^{n-1}-a^{n-1}\right)+\cdots +b_1(x-a)$$
$$\equiv (x-a)\left(b_n\left(x^{n-1}+x^{n-2}a+\cdots + a^{n-1}\right)+b_{n-1}\left(x^{n-2}+\cdots +a^{n-2}\right)+\cdots+b_1\right)\pmod{p}$$