Browse · MathNet
Print59th Ukrainian National Mathematical Olympiad
Ukraine counting and probability
Problem
Let and be positive integers, neither is divisible by . A rectangle is filled with and squares. Show that such rectangle can be filled with squares of one of the types: or .
(Edvard Turkevych)

Fig. 12
(Edvard Turkevych)
Fig. 12
Solution
Consider the case when one of the numbers is not divisible by two and another one is not divisible by three. Without loss of generality, let be not divisible by , and let be not divisible by , and let be the width and be the height of the rectangle.
We will color in black all the rows of the rectangle of the type and , (Fig. 12). The number of black rows is odd: , hence the odd number of black cells, since there are odd () number of cells in each row. Since every square and covers even number of black cells, it is not possible to cover the rectangle with and squares.
It suffices to consider the case when both and are divisible by , or . Then it is clear how to divide the rectangle into squares (in the first case) or squares (in the second case).
We will color in black all the rows of the rectangle of the type and , (Fig. 12). The number of black rows is odd: , hence the odd number of black cells, since there are odd () number of cells in each row. Since every square and covers even number of black cells, it is not possible to cover the rectangle with and squares.
It suffices to consider the case when both and are divisible by , or . Then it is clear how to divide the rectangle into squares (in the first case) or squares (in the second case).
Techniques
Coloring schemes, extremal argumentsInvariants / monovariants