I know that I have to prove this by induction on $n$ when we let $f(x)=a_{n}x^n + a_{n-1}x^{n-1} +\cdots + a_0$. I have two books in front of me with the complete proof but I don't see how after they assume that the theorem holds for a polynomial of degree $n-1$ and move on to show it holds for a polynomial of degree $n$ they say,
Either $f(x) \equiv 0\pmod p$ has no solution or at least one solution. If it has no solution the theorem holds (How so? how come is it not also true in the second case?).
Then they say, suppose that $r$ is a solution. That is $f(r) \equiv 0\pmod p$, and $r$ is a least residue $\pmod p$. Then because $x-r$ is a factor of $x^t -r^t$ for $t=0,1,2\ldots,n$, we have $$\begin{align*} f(x)\equiv f(x)-f(r) &\equiv a_{n}(x^n -r^n) + a_{n-1}(x^{n-1} -r^{n-1}) +\cdots + a_0(x -r)\pmod{p}\\ &\equiv (x-r)g(x)\pmod p \end{align*}$$ where $g$ is a polynomial of degree $n-1$. suppose that $s$ is also another solution of (1). Thus $$f(s) \equiv (s-r)g(s)\equiv0 \pmod p$$ because $p$ is prime it follows that $$s\equiv r\pmod p\text{ or }g(s) \equiv 0 \pmod p$$ from the inductions assumption, the second congruence has at most $n-1$ solutions. Since the first congruence has just one solution, the proof is complete.
I would just appreciate is someone could explain the reasoning behind this a little more. Thank you.
\pmod{a}
to produce $\pmod{a}$. – Arturo Magidin Jul 21 '12 at 02:59