Maths Olympiad Prep

Track / Stage 7 / 233 of 300 #1633 of 1964

Problem 1633

National Olympiad second round; IMO P1/P4
Combinatorics Difficulty 7.3 Prove it

Let pp be an odd prime, and put N=14(p3−p)−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 n⩽N,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,…,p−1}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.

Netherlands

This one wants a proof. Work it on paper, then read the official solution and mark yourself. Be honest about it: the record is only any use to you if it is.

Next problem →

Official solution

To prove the given statement, we will use a combinatorial argument and properties of fractions. Let's break down the problem step by step.

1. Define the Problem and Variables:
Let p p be an odd prime, and define N=14(p3−p)−1 N = \frac{1}{4}(p^3 - p) - 1 . The numbers 1,2,…,N 1, 2, \ldots, N are painted in two colors, red and blue. For any positive integer n≤N n \leq N , let r(n) r(n) be the fraction of integers {1,2,…,n} \{1, 2, \ldots, n\} that are red.

2. Objective:
We need to prove that there exists a positive integer a∈{1,2,…,p−1} a \in \{1, 2, \ldots, p-1\} such that r(n)≠ap r(n) \neq \frac{a}{p} for all n=1,2,…,N n = 1, 2, \ldots, N .

3. Initial Observations:
Note that r(n)=ap r(n) = \frac{a}{p} only if n=kp n = kp for some k∈N k \in \mathbb{N} . This is because ap \frac{a}{p} is a fraction with denominator p p , and n n must be a multiple of p p for r(n) r(n) to be exactly ap \frac{a}{p} .

4. Block Division:
Divide the sequence 1,2,…,N 1, 2, \ldots, N into blocks of size p p . Each block will be of the form (k−1)p+1,(k−1)p+2,…,kp(k-1)p + 1, (k-1)p + 2, \ldots, kp.

5. Red and Blue Distribution:
Consider the distribution of red and blue numbers within each block. Let ri r_i be the number of red numbers in the i i -th block. The fraction r(n) r(n) can be written as:
r(n)=number of red numbers in {1,2,…,n}n r(n) = \frac{\text{number of red numbers in } \{1, 2, \ldots, n\}}{n}

6. Contradiction Argument:
Assume for contradiction that for every a∈{1,2,…,p−1} a \in \{1, 2, \ldots, p-1\} , there exists some n≤N n \leq N such that r(n)=ap r(n) = \frac{a}{p} .

7. Summing Red Numbers:
Let R R be the total number of red numbers among 1,2,…,N 1, 2, \ldots, N . Then:
R=∑i=1Nri R = \sum_{i=1}^{N} r_i
Since N=14(p3−p)−1 N = \frac{1}{4}(p^3 - p) - 1 , we have:
R=ap⋅N R = \frac{a}{p} \cdot N

8. **Bounding R R :**
Since R R must be an integer, and ap⋅N \frac{a}{p} \cdot N must also be an integer, we need to check the divisibility conditions. However, N N is not necessarily divisible by p p , leading to a contradiction.

9. Conclusion:
Therefore, there must exist some a∈{1,2,…,p−1} a \in \{1, 2, \ldots, p-1\} such that r(n)≠ap r(n) \neq \frac{a}{p} for all n=1,2,…,N n = 1, 2, \ldots, N .

■\blacksquare

Source: NuminaMath-1.5, licensed Apache-2.0. Statement reproduced verbatim; metadata (topic, difficulty, ordering) added by this project.