Example 2 Let be a prime, and be integers.
Prove: There exists an integer , such that
have at least different remainders when divided by .
Solution
【Analysis】From the perspective of combinations (graph theory).
For , define the graph : its vertex set is , and vertices are connected by an edge if and only if .
Notice that, for a given , we have
.
Thus, there exists a unique such that
.
Therefore, the graphs have a total of edges.
If is an odd prime, then by the pigeonhole principle, there must exist a graph with at most edges.
Since a connected graph with vertices has at least edges, the graph must have at least connected components.
Let denote the greatest integer not exceeding the real number .
If , then there must exist a graph with at most edges (i.e., no edges). Thus, the graph must have at least 2 connected components.
In summary, for any case, there exists a graph with at least 2 connected components, which indicates that there exists an integer such that have at least distinct remainders when divided by .