Each square of an infinite square grid is to be coloured black or white in such a way that every or rectangle in the grid contains exactly black squares. In how many ways can this be done?
, 2014
Solution
The key to the solution is the following observation.
(A) Each rectangle contains exactly one black square.
Consider any rectangle and let be the number of black squares it contains, then and we want to show .
Observe first that the two squares adjacent to a rectangle that contains black squares have to contain exactly black squares. And also, the four rectangles adjacent to a square that contains exactly black squares need to contain exactly black squares.
Let be the number of black squares among those that are marked with an asterisk. Then, there are black squares in this square. On the other hand, this grid can be covered by twelve rectangles and so it has to contain black squares. Therefore, , i.e. . There is only one solution to this equation satisfying the constraints on and , namely and .
This shows that each rectangle must contain exactly one black square.
(B) After choosing one square to be coloured black, there are exactly two possibilities to complete the colouring.
Consider the rectangle with upper left corner the chosen black square. It follows from (A) that the squares and have to be black and that the remaining two black squares can only be among , , , .



Because of (A), either and or and are the black squares. Both patterns can be completed in a unique way, using (A) again, and it is easy to see that both satisfy the requirements of the problem:


(C) If we fix a rectangle, there are three choices of the black square in it. For each of these choices we have seen in (B) that there are two ways to complete the colouring. Thus there are ways of colouring the grid.