I am trying to justify why if we have a polynomial $f(x)= (x-a_1)(x-a_2)(x-a_3)$ over a prime modulus $p$,it's only roots are $a_1, a_2,$ and $a_3$. Why are there no other values of $x$ which could render this product a multiple of $p$, such that this $x$-value is a root in mod $p$? I have tried to justify that if the product of these factors for some $x$ is a multiple of $p$, then it is the case that this $x$ is congruent to one of $a_1, a_2,$ and $a_3$ but haven't got anywhere.
I am asking this solely out of curiosity, and not for a homework assignment.