Browse · MathNet
PrintEstonian Math Competitions
Estonia counting and probability
Problem
Let be a positive integer. Find the largest number of knights that can be placed on a board of size in such a way that no two knights attack each other. A knight attacks precisely the squares that are located either horizontally by one square and vertically by two squares away or horizontally by two squares and vertically by one square away.






Solution
Clearly one can place only knight on an board, which is , and at most knights on an board. In the rest, assume .
If a set of unit squares is divided into pairs in such a way that a knight on one square of any pair attacks the other square of that pair then there cannot be more knights than half of the total number of unit squares in this set without some knights attacking each other. In Figures 22, 23 and 24, all unit squares of boards of size , and are divided into pairs whose members are located at one knight move from each other. In Figures 25 and 26, all unit squares of boards of size and except the middle square are divided into pairs whose members are located at one knight move from each other. By the above, it is impossible to place knights to more than half of unit squares of boards of size , and . Taking into account that an additional knight may be on the middle square, it also follows that there cannot be more than knights on a board or more than knights on a board. As a board can be formed from two boards and a board from two boards, there cannot be more than knights on a board or more than knights on a board.
Fig. 22 Fig. 23 Fig. 24 Fig. 25 Fig. 26
If then an board can be divided into pieces of size , and , where and . By the above, neither nor board can contain more knights than half of the number of unit squares ( and are divisible into rectangles of size and ). The same holds for an piece, if the middle square in the case of odd is not taken into account. Thus for no can one place more than knights on an board.
On the other hand, coloring the unit squares black and white chesswise, one can place a knight on all squares of one and the same color since a knight attacks only squares of the opposite color. The number of unit squares of a fixed color is if is even. In the case of odd , the number of unit squares whose color coincides with the color of the middle square is . Hence one can place pairwise non-attacking knights on an board.
If a set of unit squares is divided into pairs in such a way that a knight on one square of any pair attacks the other square of that pair then there cannot be more knights than half of the total number of unit squares in this set without some knights attacking each other. In Figures 22, 23 and 24, all unit squares of boards of size , and are divided into pairs whose members are located at one knight move from each other. In Figures 25 and 26, all unit squares of boards of size and except the middle square are divided into pairs whose members are located at one knight move from each other. By the above, it is impossible to place knights to more than half of unit squares of boards of size , and . Taking into account that an additional knight may be on the middle square, it also follows that there cannot be more than knights on a board or more than knights on a board. As a board can be formed from two boards and a board from two boards, there cannot be more than knights on a board or more than knights on a board.
Fig. 22 Fig. 23 Fig. 24 Fig. 25 Fig. 26
If then an board can be divided into pieces of size , and , where and . By the above, neither nor board can contain more knights than half of the number of unit squares ( and are divisible into rectangles of size and ). The same holds for an piece, if the middle square in the case of odd is not taken into account. Thus for no can one place more than knights on an board.
On the other hand, coloring the unit squares black and white chesswise, one can place a knight on all squares of one and the same color since a knight attacks only squares of the opposite color. The number of unit squares of a fixed color is if is even. In the case of odd , the number of unit squares whose color coincides with the color of the middle square is . Hence one can place pairwise non-attacking knights on an board.
Final answer
floor(n^2/2)
Techniques
Coloring schemes, extremal argumentsInvariants / monovariantsMatchings, Marriage Lemma, Tutte's theorem