Skip to main content
OlympiadHQ

Browse · MathNet

Print

75th Romanian Mathematical Olympiad

Romania counting and probability

Problem

Find all the integers with the property: the cells of a board can be colored with several colors, so that each cell has exactly two neighbouring cells with the same color as . Here neighbouring cells means cells with a common side.
Solution
Indeed, if is even, then we can divide the board into squares . Now we pick a different color for each such square and use it for the cells of that square. This coloring clearly satisfies the requirement.

To prove that must be even, start from any cell of the board and move from each cell to its neighbour having the same color as and which has not been previously visited. Since the board is finite, this procedure must stop at some point, meaning that the next step takes us to an already visited cell . Since each cell has exactly two neighbours with the same color as , the cell must be . So, for each cell of the board we have a path , constructed as above. Notice that if two such paths have a common cell, then they must coincide, because these paths have the same pairs of 'consecutive cells' (they may have different starting points and the order in which the consecutive cells are covered can be reversed). Therefore, the number of the board's cells is the sum of the numbers of the cells of the different paths .

Color now the board chess-wise. Each pair of consecutive cells of a path is made of a black and a white cell, therefore each path must have an even number of cells. This shows that the number of the board's cells is the sum of some even numbers, so is even.
Final answer
All even integers n ≥ 2

Techniques

Coloring schemes, extremal argumentsInvariants / monovariants