MathDB
Sorry it's combo

Source: ISL 2020 C5

July 20, 2021
IMO ShortlistcombinatoricsIMO Shortlist 2020colorings

Problem Statement

Let pp be an odd prime, and put N=14(p3p)1.N=\frac{1}{4} (p^3 -p) -1. The numbers 1,2,,N1,2, \dots, N are painted arbitrarily in two colors, red and blue. For any positive integer nN,n \leqslant N, denote r(n)r(n) the fraction of integers {1,2,,n}\{ 1,2, \dots, n \} that are red. Prove that there exists a positive integer a{1,2,,p1}a \in \{ 1,2, \dots, p-1\} such that r(n)a/pr(n) \neq a/p for all n=1,2,,N.n = 1,2, \dots , N.
[I]Netherlands