I'm studying the theory of congruences in number theory. I found a theorem called Lagrange Theorem that state
Given a prime p , let
$f(x)=c_0+c_1x + \cdots + c_n x^n$ be a polynonomial of degree n with integer coefficents such that $ c_n \not \equiv 0 (mod p)$ then the polynoimial congruences $f(x) \equiv 0 (mod p)$ has at most n solution.
And a proof is given that is correct. Later is given an application of this Theorem in another Theorem that state:
If a polynomial f with $c_j$ coefficents is of degree n and if $f(x) \equiv 0 (mod p)$ has more that n solution where p is prime than every coefficents of f is divisibile by p.
Now the proof do not convince me or any way i could not understand. The proof is as follow If there is some coefficents not divisible by p, let $c_k$ be the one with the largest index. Then $k \leq n$ and the coungrences
$c_0 + c_1 x + \cdots + c_k x^k \equiv 0 (mod p) $
has more than k solution (Why ? this I do not understand) and so by lagrange theorem $p|c_k$ and this a contradiction.