Problem

Source: 2012 Cuba MO 1.3

Tags: combinatorics, Coloring



On a $123 \times 123$ board, each square is painted red or blue according to the following conditions: a) Each square painted red that is not on the edge of the board has exactly $5$ blue squares among its $8$ neighboring squares. b) Each square painted blue that is not on the edge of the board has exactly $4$ red squares among its $8$ neighboring squares. Determine the number of red-painted squares on the board.