I am trying to understand the proof of the following result:
If $p$ is prime, and $f(x) \equiv 0 \pmod p$ with $f(x)= a_0 x^n + ... + a_n$ Then, if the congruence equation has strictly more than $n$ solutions, the coefficients of $f(x)$ are multiples of $p$.
To understand the proof I concern myself only with the case $n=2$.
So let's say there are $3$ solutions $x_1, x_2, x_3$.
We can rewrite $f(x)$ as:
$f(x) = a(x-x_1)(x-x_2) + b(x-x_1) + c$
With $a=a_0$, $b=a_1 + x_1 + x_2$ and $c = a_2 +x_1 x_2 + x_1 b$
By plugging in $x= x_1$ in $f(x)$ we get that $c\equiv 0 \pmod p$ (i.e. $p \mid c$).
However, I get in troubles when plugging in $x=x_2$ (and plugging in $x=x_3$ as well).
By plugging in by $x= x_2$, we have: $p\mid b(x_2 - x_1)$
What I want to get is that $p\mid b$, so I need to prove that $p\nmid (x_2 - x_1)$
My atempt at proving $p\nmid (x_2 - x_1)$ has been to substract $a_0 x_1 ^2 + a_1 x_1 + a_2 \equiv 0 \pmod p$ with $a_0 x_2 ^2 + a_1 x_2 + a_2 \equiv 0 \pmod p$ but the squared terms are not very easy to handle.
If anyone could help me with this I would be grateful!
Thank i.a.