Let be an integer. Consider an chessboard divided into unit squares. We call a configuration of rooks on this board happy if every row and every column contains exactly one rook. Find the greatest positive integer such that for every happy configuration of rooks, we can find a square without a rook on any of its unit squares.
Solution
Answer. .
Let be a positive integer. We will show that (i) if then each happy configuration contains an empty square, but (ii) if then there exists a happy configuration not containing such a square. These two statements together yield the answer.
i). Assume that . Consider any happy configuration. There exists a row containing a rook in its leftmost square. Take consecutive rows with being one of them. Their union contains exactly rooks. Now remove the leftmost columns from (thus at least one rook is also removed). The remaining part is an rectangle, so it can be split into squares of size , and this part contains at most rooks. Thus one of these squares is empty.
(ii). Now we assume that . Firstly, we will construct a happy configuration with no empty square for the case . After that we will modify it to work for smaller values of .
Let us enumerate the rows from bottom to top as well as the columns from left to right by the numbers . Every square will be denoted, as usual, by the pair ( ) of its row and column numbers. Now we put the rooks on all squares of the form ( ) with (the picture below represents this arrangement for ). Since each number from 0 to has a unique representation of the form , each row and each column contains exactly one rook.

Next, we show that each square on the board contains a rook. Consider such a square , and consider consecutive rows the union of which contains . Let the lowest of these rows have number with (notice that ). Then the rooks in this union are placed in the columns with numbers , , or, putting these numbers in increasing order,
One readily checks that the first number in this list is at most (if , then , and the first listed number is ), the last one is at least ( ) , and the difference between any two consecutive numbers is at most . Thus, one of the consecutive columns intersecting contains a number listed above, and the rook in this column is inside , as required. The construction for is established.
It remains to construct a happy configuration of rooks not containing an empty square for . In order to achieve this, take the construction for an square described above and remove the bottom rows together with the rightmost columns. We will have a rook arrangement with no empty 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.