Maths Olympiad Prep

Library / /26 of 31

Combinatorics Difficulty 7.3 National Olympiad, round 2 Prove it Italy

Problem:

Let n2n \geq 2 be an integer. We color all the squares of an n×nn \times n chessboard red or blue so that every 2×22 \times 2 square contained in the chessboard has exactly two red squares and two blue squares.
How many possible colorings are there?

NOTE: two colorings that are obtained from each other by a rotation or a symmetry of the chessboard are considered distinct.

Solution

Solution:

Let us fix a coloring of the first row of the chessboard. This can be done in 2n2^{n} ways (2 choices for the color of each of the nn squares). Let us now show whether and in how many ways a coloring of the first row can be completed to a coloring of the whole chessboard satisfying the required conditions. From now on we will simply call a completion of a coloring a completion that satisfies the conditions of the problem.

First case: the squares of the first row have alternating colors. The possibilities for this type of coloring of the first row are 2: if the first square is colored red, then the second is colored blue, the third red, and so on. Conversely, if the first square is colored blue, then the second is colored red, the third blue, and so on.

In this case the completions of the coloring to the second row are exactly those with alternating colors, that is, 2. Similarly, for every completion of the second row there are 2 completions of the third row, and so on, for a total of 2n12^{n-1} completions and hence 22n1=2n2 \ldots 2^{n-1}=2^{n} possibilities relative to this case.

Second case: there exist two adjacent squares of the first row with the same color. The possibilities for this type of configuration are all the ones minus those for the first type of configuration, that is, 2n22^{n}-2.

One way of completing the coloring to the second row is certainly to color each square of the second row differently from the square above it. On the other hand, this is the only possibility, since below two adjacent squares of the same color there must be two squares of different color, and hence necessarily to their left and to their right there must be squares of a different color from those above them, and so on. In conclusion, there is only one completion of the coloring to the second row. Similarly, there is only one completion of the coloring to each row following the first, for a total of 2n22^{n}-2 possibilities relative to this case.

The total number of colorings is therefore the sum of those relative to the first and second cases, that is,
2n+2n2=2n+12. 2^{n}+2^{n}-2=2^{n+1}-2 .

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: MathNet, licensed CC-BY-4.0. Statement translated into English from it; metadata (topic, difficulty) added by this project.