Maths Olympiad Prep

Library / /56 of 65

Combinatorics Difficulty 6.5 National Olympiad Prove it Bulgaria

Problem:

A square n×nn \times n (n2n \geq 2) is divided into n2n^{2} unit squares colored in black or white such that the squares at the four corners of any rectangle (containing at least four squares) have not the same color. Find the maximum possible value of nn.

Solution

Solution:

We shall show that the desired value is equal to 44.

Let (i,j)(i, j) be the unit square in the ii-th row and the jj-th column of a 4×44 \times 4 square. It is easy to check that if the squares (1,1),(1,2),(2,1),(2,3),(3,2),(3,4),(4,3),(4,4)(1,1), (1,2), (2,1), (2,3), (3,2), (3,4), (4,3), (4,4) are white and the others are black, then the condition of the problem is satisfied.

To prove that for n5n \geq 5 there is no coloring with the required properties, it is enough to deal only with the case n=5n=5 (any n×nn \times n square contains a 5×55 \times 5 square). Consider an arbitrary black-white coloring of a 5×55 \times 5 square. At least 1313 of the unit squares have the same coloring, for example, black. Three cases are possible.

Case 1. One of the rows, say ll, contains only black squares. Then one of the other rows contains at least 22 black squares. Hence the corners of the rectangle with two vertices at these squares and the other two in ll are black.

Case 2. One of the rows, say ll, contains exactly 44 black squares. Then one of the other rows contains at least 33 black squares. Then at least two of them do not correspond to the white square in ll. Hence the corners of the rectangle with two vertices at these squares and the other two in ll are black.

Case 3. Any row contains at most 33 black squares. Then at least 33 rows contain exactly 33 black squares, say the rows 1,2,31,2,3 from above. We call a column black (white) if its upper square is black (white). There are exactly 33 black columns. If a row contains 22 black squares that lie in black columns, then obviously there is a rectangle with black corners. Otherwise, two of the black squares in row 22 and two of the black squares in the two white columns are black corners of a rectangle.

The solution is completed.

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.