Maths Olympiad Prep

Library / /341 of 520

Number theory Difficulty 6.7 National olympiad Find the answer

Let n2n \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. (Croatia) Answer. n1\lfloor\sqrt{n-1}\rfloor.

Translate the above text into English, please retain the original text's line breaks and format, and output the translation result directly.

A number or a short expression. Fractions can be typed as 3/2, and spacing doesn't matter.

Solution

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 n2n \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 n21n-\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 n2n \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,,210,1, \ldots, \ell^{2}-1. Every square will be denoted, as usual, by the pair (r,c)(r, c) of its row and column numbers. Now we put the rooks on all squares of the form (i+j,j+i)(i \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 21\ell^{2}-1 has a unique representation of the form i+j(0i,j1)i \ell+j(0 \leqslant i, j \leqslant \ell-1), each row and each column contains exactly one rook.

!

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 0p,q10 \leqslant p, q \leqslant \ell-1 (notice that p+q2p \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),,(q1)+p+1p+1, \ell+(p+1), \ldots,(q-1) \ell+p+1, or, putting these numbers in increasing order,

p+1,+(p+1),,(q1)+(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 2n\ell^{2}-n bottom rows together with the 2n\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.

Comment. Part (i) allows several different proofs. E.g., in the last paragraph of the solution, it suffices to deal only with the case n=2+1n=\ell^{2}+1. Notice now that among the four corner squares, at least one is empty. So the rooks in its row and in its column are distinct. Now, deleting this row and column we obtain an 2×2\ell^{2} \times \ell^{2} square with 21\ell^{2}-1 rooks in it. This square can be partitioned into 2\ell^{2} squares of size ×\ell \times \ell, so one of them is empty.

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: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic and difficulty added by this site.