Maths Olympiad Prep

Library / /45 of 48

Combinatorics Difficulty 9.0 IMO level Prove it China

Given positive integers nn and kk, n>k2>4n > k^2 > 4. In an n×nn \times n grid, any kk squares in distinct rows and distinct columns are called a kk-set. Find the largest positive integer NN satisfying that: one can choose NN squares of the n×nn \times n grid and colour them in a certain way, such that for any coloured kk-set, some two squares have the same colour, and some two squares have different colours.

Solution

N=(k1)2nN = (k - 1)^2 n.

Choose (k1)2(k-1)^2 rows of the grid: colour the first k1k-1 rows in colour c1c_1; the second k1k-1 rows in colour c2c_2; ...; the last k1k-1 rows in colour ck1c_{k-1}. Altogether, (k1)2n(k-1)^2 n squares are coloured. For any coloured kk-set, as there are only k1k-1 colours, some two squares must have the same colour. On the other hand, if all the squares in this kk-set have the same colour, then by definition they are in kk different rows, yet there are only k1k-1 rows in that colour, a contradiction. This implies that some two squares have different colours. Therefore, N(k1)2nN \ge (k-1)^2 n.

In a kk-set, if all the squares have the same colour, call it a mono kk-set; if the squares have distinct colours, call it a poly kk-set. We assert that for any colouring of (k1)2n+1(k-1)^2n + 1 squares, there must exist a mono kk-set or a poly kk-set. This will give N(k1)2nN \le (k-1)^2n and the conclusion. First, we need a lemma.

Lemma In an n×nn \times n grid, among any (m1)n+1(m-1)n + 1 squares, 1mn1 \le m \le n, there exists an mm-set.

Proof of lemma Divide the squares of the n×nn \times n grid into nn groups, such that the square in the iith row and jjth column is in group aa (1i,j,an1 \le i, j, a \le n) if and only if ija(modn)i - j \equiv a \pmod{n}. Notice that for each group, the squares are in distinct rows and distinct columns. By the pigeonhole principle, among any (m1)n+1(m-1)n + 1 squares, mm of them are in a group, and they form an mm-set.

For the original problem, assume that (k1)2n+1(k-1)^2n+1 squares are coloured in a certain way. According to the lemma, there exists a ((k1)2+1)((k-1)^2+1)-set, call it AA. If there are k1k-1 or fewer colours in AA, then by the pigeonhole principle some kk squares are in the same colour, and they form a mono kk-set; if there are kk or more colours in AA, then choose kk squares of distinct colours, and they form a poly kk-set.

Therefore, the largest NN is (k1)2n(k-1)^2n.

Alternative proof of lemma Choose any (m1)n+1(m-1)n+1 squares and colour them black. Take mm rows with the most black squares: say they are row 1,2,,m1, 2, \dots, m, with x1,x2,,xmx_1, x_2, \dots, x_m black squares, respectively, and the other rows have xm+1,,xnx_{m+1}, \dots, x_n black squares, respectively. If there exists ll, 1lm1 \le l \le m, such that in the first mm rows, black squares of some ll rows are distributed in l1l-1 (or fewer) columns, say, black squares of row 1,,l1, \dots, l are all in the first l1l-1 columns. Then, x1,,xll1x_1, \dots, x_l \le l-1; for i>mi > m, xil1x_i \le l-1 as well (since there are fewer black squares in those rows). Hence,
(m1)n+1=i=1nxil(l1)+(ml)n+(nm)(l1)=mnn+ml(m+1l)mnn+mm=(m1)n, \begin{align*} (m-1)n + 1 &= \sum_{i=1}^{n} x_i \le l(l-1) + (m-l)n + (n-m)(l-1) \\ &= mn - n + m - l(m+1-l) \\ &\le mn - n + m - m = (m-1)n, \end{align*}
which is a contradiction. It follows that for any ll of the first mm rows, the black squares are located in at least ll columns. By Hall's marriage theorem, there are mm black squares in distinct rows and distinct columns, which is an mm-set. The lemma is proved. \square

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

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