Maths Olympiad Prep

Library / /97 of 133

Combinatorics Difficulty 6.2 National olympiad Prove it Saudi Arabia

Majid wants to color the cells of an n×nn \times n chessboard into white and black so that each 2×22 \times 2 subsquare contains two white cells and two black cells. In how many ways can Majid color this n×nn \times n chessboard?

Solution

We have three possible cases.

The first case is when there are no two adjacent cells with the same color. In this case there are exactly two possible ways to color this n×nn \times n chessboard depending on the color of the first cell on the top left of the chessboard:

Figure 1
Figure 2

The second case is when there are two adjacent cells with the same color on the same row.

Figure 3
Figure 4

In this case the two adjacent cells in the previous row and the two adjacent cells in the next row must be of the other color.

Figure 5
Figure 6

If the previous cell or the next cell in this row is of the same color, the adjacent cells in the previous or the next row must be of the other color. If the previous cell or the next cell in this row is of the other color, the adjacent cells in the previous or the next row must be of this color.

Figure 7
Figure 8

Therefore, once fixing the colors of the cells of this row, the colors of the cells of the other rows are fixed by just alternating vertically the colors of adjacent cells.

Figure 9

Hence, in this case any coloring of the first row with at least two adjacent cells with the same color will fix the coloring of the cells of the whole chessboard. There are precisely 2n22^{n}-2 possible such coloring corresponding to the number of subsets of {1,2,,n}\{1,2, \ldots, n\} (the positions of the black cells in the row) minus the two alternating coloring of the first case.

The third case is when there are two adjacent cells with the same color on the same column. This case is similar to the previous one and in the same way we obtain 2n22^{n}-2 possible such coloring.

Notice that the second and the third cases cannot occur at the same time. Therefore, there are precisely 2+2(2n2)=2n+122+2\left(2^{n}-2\right)=2^{n+1}-2 possible coloring of the n×nn \times n chessboard.

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 and solution reproduced as published; topic and difficulty added by this site.