Maths Olympiad Prep

Library / IMO Shortlist /342 of 365

IMO Shortlist

Combinatorics Difficulty 9.1 IMO level Prove it IMO

Let n⩾2n \geqslant 2 be an integer. Consider an n×nn \times n chessboard divided into n2n^{2} unit squares. We call a configuration of nn rooks on this board happy if every row and every column contains exactly one rook. Find the greatest positive integer kk such that for every happy configuration of rooks, we can find a k×kk \times k square without a rook on any of its k2k^{2} unit squares.

Solution

Answer. ⌊n−1⌋\lfloor\sqrt{n-1}\rfloor.

Let ℓ\ell be a positive integer. We will show that (i) if n>ℓ2n>\ell^{2} then each happy configuration contains an empty ℓ×ℓ\ell \times \ell square, but (ii) if n⩽ℓ2n \leqslant \ell^{2} then there exists a happy configuration not containing such a square. These two statements together yield the answer.

i). Assume that n>ℓ2n>\ell^{2}. Consider any happy configuration. There exists a row RR containing a rook in its leftmost square. Take ℓ\ell consecutive rows with RR being one of them. Their union UU contains exactly ℓ\ell rooks. Now remove the n−ℓ2⩾1n-\ell^{2} \geqslant 1 leftmost columns from UU (thus at least one rook is also removed). The remaining part is an ℓ2×ℓ\ell^{2} \times \ell rectangle, so it can be split into ℓ\ell squares of size ℓ×ℓ\ell \times \ell, and this part contains at most ℓ−1\ell-1 rooks. Thus one of these squares is empty.

(ii). Now we assume that n⩽ℓ2n \leqslant \ell^{2}. Firstly, we will construct a happy configuration with no empty ℓ×ℓ\ell \times \ell square for the case n=ℓ2n=\ell^{2}. After that we will modify it to work for smaller values of nn.

Let us enumerate the rows from bottom to top as well as the columns from left to right by the numbers 0,1,…,ℓ2−10,1, \ldots, \ell^{2}-1. Every square will be denoted, as usual, by the pair ( r,cr, c ) of its row and column numbers. Now we put the rooks on all squares of the form ( iℓ+j,jℓ+ii \ell+j, j \ell+i ) with i,j=0,1,…,ℓ−1i, j=0,1, \ldots, \ell-1 (the picture below represents this arrangement for ℓ=3\ell=3 ). Since each number from 0 to ℓ2−1\ell^{2}-1 has a unique representation of the form iℓ+j(0⩽i,j⩽ℓ−1)i \ell+j(0 \leqslant i, j \leqslant \ell-1), each row and each column contains exactly one rook.

Figure 1

Next, we show that each ℓ×ℓ\ell \times \ell square AA on the board contains a rook. Consider such a square AA, and consider ℓ\ell consecutive rows the union of which contains AA. Let the lowest of these rows have number pℓ+qp \ell+q with 0⩽p,q⩽ℓ−10 \leqslant p, q \leqslant \ell-1 (notice that pℓ+q⩽ℓ2−ℓp \ell+q \leqslant \ell^{2}-\ell ). Then the rooks in this union are placed in the columns with numbers qℓ+p,(q+1)ℓ+p,…,(ℓ−1)ℓ+pq \ell+p,(q+1) \ell+p, \ldots,(\ell-1) \ell+p, p+1,ℓ+(p+1),…,(q−1)ℓ+p+1p+1, \ell+(p+1), \ldots,(q-1) \ell+p+1, or, putting these numbers in increasing order,
p+1,ℓ+(p+1),…,(q−1)ℓ+(p+1),qℓ+p,(q+1)ℓ+p,…,(ℓ−1)ℓ+p. p+1, \ell+(p+1), \ldots,(q-1) \ell+(p+1), q \ell+p,(q+1) \ell+p, \ldots,(\ell-1) \ell+p .
One readily checks that the first number in this list is at most ℓ−1\ell-1 (if p=ℓ−1p=\ell-1, then q=0q=0, and the first listed number is qℓ+p=ℓ−1q \ell+p=\ell-1 ), the last one is at least ( ℓ−1\ell-1 ) ℓ\ell, and the difference between any two consecutive numbers is at most ℓ\ell. Thus, one of the ℓ\ell consecutive columns intersecting AA contains a number listed above, and the rook in this column is inside AA, as required. The construction for n=ℓ2n=\ell^{2} is established.

It remains to construct a happy configuration of rooks not containing an empty ℓ×ℓ\ell \times \ell square for n<ℓ2n<\ell^{2}. In order to achieve this, take the construction for an ℓ2×ℓ2\ell^{2} \times \ell^{2} square described above and remove the ℓ2−n\ell^{2}-n bottom rows together with the ℓ2−n\ell^{2}-n rightmost columns. We will have a rook arrangement with no empty ℓ×ℓ\ell \times \ell square, but several rows and columns may happen to be empty. Clearly, the number of empty rows is equal to the number of empty columns, so one can find a bijection between them, and put a rook on any crossing of an empty row and an empty column corresponding to each other.

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

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