Determine the number of ways of colouring a $10\times 10$ square board using two colours black and white such that each $2\times 2$ subsquare contains 2 black squares and 2 white squares.
Problem
Source:
Tags:
05.06.2014 05:46
06.06.2014 08:37
First, it is easy to see if botom line has two consecutive $BB$ black or $WW$ white $1\times 1$ squares then coolotring of whole square is unikely determined. So in this case we have $2^n-2$ colorings. Now if botom line is $BWBWBW...$ or $WBWBWB...$ (colors alternate) then all lines above are like that. So we have every time 2 choises for single line and this gives $2^n$ possible colorings. Thus we have $2^{n+1}-2$ possible colorings.
07.06.2014 01:21
This is the exact same method as above, without proof.
07.06.2014 03:02
Dukejukem wrote: This is the exact same method as above, without proof. But more accessible.
29.06.2022 08:03
Walk-Through: The answer for an $n \times n$ grid is $2^{n+1} - 2$. Let $a_1, a_2, \ldots, a_n$ denote the colors of the cells in the bottom row of the grid (from left to right). Define $b_1, b_2, \ldots, b_n$ similarly for the second lowest row. Claim 1: If $a_1 = b_1$, then the sequence $a_1, a_2, \ldots, a_n$ must be alternating. Moreover, $a_i = b_i$ holds for all $1 \le i \le n$. We can prove this by considering the $n-1$ squares contained in the bottom two rows (from left to right). Claim 2: If $a_1 \ne b_1$, then $a_i \ne b_i$ holds for all $1 \le i \le n$. We can prove this by considering the $n-1$ squares contained in the bottom two rows (from left to right). Now, we have two cases. Case 1: The sequence $a_1, a_2, \ldots, a_n$ is alternating. (There are $2$ such sequences.) Recall that $a_1 = b_1$ and $a_1 \ne b_1$ are both possible. Now, because the sequence $b_1, b_2, \ldots, b_n$ is also guaranteed to be alternating, it's easy to see there are $2 \cdot 2^{n - 1} = 2^n$ possible colorings for this case. Case 2: The sequence $a_1, a_2, \ldots, a_n$ is not alternating. (There are $2^n - 2$ such sequences.) Because $a_i \ne b_i$ for all $1 \le i \le n$, we know the sequence $b_1, b_2, \ldots, b_n$ isn't alternating either. Thus, the coloring of the entire grid is now fixed, so there are $2^n - 2$ possible colorings for this case. Extract $2^{n+1} - 2$. Remark: Notice that we implicitly used the contrapositive of Claim 1 to solve Case 2.