All Black Cells
Source: 2023 China TST Problem 24
April 1, 2023
combinatoricsChina TST
Problem Statement
Let be a positive integer. Initially, a grid has black cells and the rest white cells. The following two operations are allowed :
(1) If a square has exactly three black cells, the fourth is changed to a black cell;
(2) If there are exactly two black cells in a square, the black cells are changed to white and white to black.
Find the smallest positive integer such that for any configuration of the grid with black cells, all cells can be black after a finite number of operations.