Maths Olympiad Prep

Track / Stage 6 / 96 of 400 #1736 of 2604

Problem 1736

National Olympiad, first round
Combinatorics Difficulty 6.1 Prove it Junior Balkan MO · JBMO

Let MM be a subset of the set of 2021 integers {1,2,3,…,2021}\{1,2,3, \ldots, 2021\} such that for any three elements (not necessarily distinct) a,b,ca, b, c of MM we have ∣a+b−c∣>10|a+b-c|>10. Determine the largest possible number of elements of MM.

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

Solution:
The set M={1016,1017,…,2021}M=\{1016,1017, \ldots, 2021\} has 1006 elements and satisfies the required property, since a,b,c∈Ma, b, c \in M implies that a+b−c⩾1016+1016−2021=11a+b-c \geqslant 1016+1016-2021=11.

We will show that this is optimal.

Suppose MM satisfies the condition in the problem. Let kk be the minimal element of MM. Then k=∣k+k−k∣>10⇒k⩾11k=|k+k-k|>10 \Rightarrow k \geqslant 11. Note also that for every mm, the integers m,m+k−10m, m+k-10 cannot both belong to MM, since k+m−(m+k−10)=10k+m-(m+k-10)=10.

Claim 1: MM contains at most k−10k-10 out of any 2k−202k-20 consecutive integers.

Proof: We can partition the set {m,m+1,…,m+2k−21}\{m, m+1, \ldots, m+2k-21\} into k−10k-10 pairs as follows:
{m,m+k−10},{m+1,m+k−9},…,{m+k−11,m+2k−21} \{m, m+k-10\},\{m+1, m+k-9\}, \ldots,\{m+k-11, m+2k-21\}
It remains to note that MM can contain at most one element of each pair.

Claim 2: MM contains at most [(t+k−10)/2][(t+k-10)/2] out of any tt consecutive integers.

Proof: Write t=q(2k−20)+rt=q(2k-20)+r with r∈{0,1,2,…,2k−21}r \in \{0,1,2, \ldots, 2k-21\}. From the set of the first q(2k−20)q(2k-20) integers, by Claim 1 at most q(k−10)q(k-10) can belong to MM. Also by Claim 1, it follows that from the last rr integers, at most min⁡{r,k−10}\min \{r, k-10\} can belong to MM.

Thus,
- If r⩽k−10r \leqslant k-10, then at most
q(k−10)+r=t+r2⩽t+k−102 integers belong to M q(k-10)+r=\frac{t+r}{2} \leqslant \frac{t+k-10}{2} \text{ integers belong to } M
- If r>k−10r>k-10, then at most
q(k−10)+k−10=t−r+2(k−10)2⩽t+k−102 integers belong to M q(k-10)+k-10=\frac{t-r+2(k-10)}{2} \leqslant \frac{t+k-10}{2} \text{ integers belong to } M

By Claim 2, the number of elements of MM amongst k+1,k+2,…,2021k+1, k+2, \ldots, 2021 is at most
[(2021−k)+(k−10)2]=1005 \left[\frac{(2021-k)+(k-10)}{2}\right]=1005
Since amongst {1,2,…,k}\{1,2, \ldots, k\} only kk belongs to MM, we conclude that MM has at most 1006 elements as claimed.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty, ordering) added by this project.