Olympiad Maths Prep

Track / Stage 7 / 95 of 300 #1495 of 2000

Problem 1495

National olympiad second round; IMO P1/P4
Combinatorics Difficulty 7.2 Prove it

Let DD be the set of all pairs (i,j)(i,j), 1i,jn1\le i,j\le n. Prove there exists a subset SDS \subset D, with S3n(n+1)5|S|\ge\left \lfloor\frac{3n(n+1)}{5}\right \rfloor, such that for any (x1,y1),(x2,y2)S(x_1,y_1), (x_2,y_2) \in S we have (x1+x2,y1+y2)∉S(x_1+x_2,y_1+y_2) \not \in S.

(Peter Cameron)

This one wants a proof. Work it on paper, read the official solution, then mark yourself honestly — the ladder only means something if the record is true.

Official solution

1. **Define the set D D and the subset S S :**
Let D D be the set of all pairs (i,j)(i, j) where 1i,jn 1 \le i, j \le n . We need to find a subset SD S \subset D such that S3n(n+1)5 |S| \ge \left\lfloor \frac{3n(n+1)}{5} \right\rfloor and for any (x1,y1),(x2,y2)S(x_1, y_1), (x_2, y_2) \in S, we have (x1+x2,y1+y2)S(x_1 + x_2, y_1 + y_2) \notin S.

2. Choose an anti-diagonal strip:
Define m:=4n+65 m := \left\lfloor \frac{4n + 6}{5} \right\rfloor . We choose the subset S S as:
S={(i,j)Dmi+j<2m} S = \{(i, j) \in D \mid m \le i + j < 2m\}
This subset S S is chosen such that it forms an anti-diagonal strip in the n×n n \times n grid.

3. **Verify that S S is sum-free:**
For any (x1,y1),(x2,y2)S(x_1, y_1), (x_2, y_2) \in S, we have:
mx1+y1<2mandmx2+y2<2m m \le x_1 + y_1 < 2m \quad \text{and} \quad m \le x_2 + y_2 < 2m
Adding these inequalities, we get:
2m(x1+y1)+(x2+y2)<4m 2m \le (x_1 + y_1) + (x_2 + y_2) < 4m
Since (x1+x2,y1+y2) (x_1 + x_2, y_1 + y_2) would have a sum x1+y1+x2+y2 x_1 + y_1 + x_2 + y_2 that is at least 2m 2m and less than 4m 4m , it cannot lie within the range mi+j<2m m \le i + j < 2m . Therefore, S S is sum-free.

4. **Calculate the size of S S :**
The size of S S can be calculated by counting the number of pairs (i,j)(i, j) such that mi+j<2m m \le i + j < 2m . This is equivalent to counting the number of lattice points in the region between the lines i+j=m i + j = m and i+j=2m1 i + j = 2m - 1 .

The total number of pairs in D D is n2 n^2 . The number of pairs (i,j)(i, j) such that i+j<m i + j < m is given by the sum of the first m1 m-1 integers:
(m12)=(m1)(m2)2 \binom{m-1}{2} = \frac{(m-1)(m-2)}{2}
Similarly, the number of pairs (i,j)(i, j) such that i+j2m i + j \ge 2m is given by the sum of the first 2n2m+1 2n - 2m + 1 integers:
(2n2m+22)=(2n2m+2)(2n2m+1)2 \binom{2n - 2m + 2}{2} = \frac{(2n - 2m + 2)(2n - 2m + 1)}{2}
Therefore, the size of S S is:
S=n2(m12)(2n2m+22) |S| = n^2 - \binom{m-1}{2} - \binom{2n - 2m + 2}{2}

5. Verify the bound:
We need to show that:
S3n(n+1)5 |S| \ge \left\lfloor \frac{3n(n+1)}{5} \right\rfloor
By substituting m=4n+65 m = \left\lfloor \frac{4n + 6}{5} \right\rfloor and simplifying the expressions, it can be shown that the size of S S meets the required bound for all n n .

This completes the proof that such a subset S S exists.

\blacksquare

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.