Let us associate a 1 to each cell with a black color and a 0 to each cell with a white color. The condition is equivalent to the sum of numbers in each 2×3 rectangle and in each 3×2 rectangle being even. Let ai,j be this number at the cell in the ith row and jth column, for 1≤i,j≤50.
Consider, for a fixed pair i,j, with 1≤i≤48 and 1≤j≤47, the 3×4 rectangle:
By applying the condition to the two
2×3 rectangles which contain cells from the second and the third rows, we get
ai+1,j+ai+1,j+1+ai+1,j+2+ai+2,j+ai+2,j+1+ai+2,j+2≡0(mod2),and
ai+1,j+1+ai+1,j+2+ai+1,j+3+ai+2,j+1+ai+2,j+2+ai+2,j+3≡0(mod2)By applying the condition to all the
3×2 rectangles, we get
ai,j+ai,j+1+ai+1,j+ai+1,j+1+ai+2,j+ai+2,j+1≡0(mod2),ai,j+1+ai,j+2+ai+1,j+1+ai+1,j+2+ai+2,j+1+ai+2,j+2≡0(mod2),and
ai,j+2+ai,j+3+ai+1,j+2+ai+1,j+3+ai+2,j+2+ai+2,j+3≡0(mod2).By adding these 5 relations and cancelling all even numbers we get
ai,j+ai,j+3≡0(mod2).This proves that
ai,j+3=ai,jWe prove in a similar way that
ai+3,j=ai,jTherefore, it is enough to know the numbers in the
3×3 rectangle
to deduce, by periodicity, the numbers in all the other cells.
Applying the condition to the first 2×3 rectangle, we will get
a2,3≡a1,1+a1,2+a1,3+a2,1+a2,2(mod2)
Applying the condition to the second 2×3 rectangle and to the second 3×2 rectangle and adding the two relations, we will get
a3,1≡a2,1+a1,2+a1,3(mod2)
We obtain in a similar way
a3,2≡a2,2+a1,3+a1,1(mod2)
a3,3≡a2,3+a1,1+a1,2(mod2)
Therefore, it is enough to know the 5 numbers
a1,1,a1,2,a1,3,a2,1,a2,2
to deduce all the numbers in the cells of the 50×50 chessboard.
Conversely, choose a value in {0,1} for each number a1,1,a1,2,a1,3,a2,1,a2,2, and deduce the values in all the other cells of the chessboard. It is easy to check that the condition on the two 2×3 rectangles and the two 3×2 rectangles in the 3×3 rectangle above is satisfied. We deduce, by periodicity, that it is satisfied in all the chessboard. Hence there are 25 ways to color the chessboard.