Maths Olympiad Prep

Library / /15 of 41

, 2013

Combinatorics Difficulty 8.2 Shortlist Prove it Slovenia

Let nn and mm be natural numbers. We want to color each cell of a n×mn \times m table either white or black. For what nn and mm can this be done so that each cell has an odd number of neighbouring cells that are of the same color? Two cells are called neighbouring if they have a common side.

Solution

We shall prove that this can be done if and only if at least one of the numbers nn and mm is even.

First observe the case when one of the numbers is even. Without loss of generality, suppose mm is even. We divide a table of size n×mn \times m (nn rows, mm columns) into quadrilaterals of size 1×21 \times 2 and color them white and black in turn, in the form of a chessboard, as shown in the figure below. Since mm is even, each row can be divided into exactly m2\frac{m}{2} such quadrilaterals, which makes the coloring possible. It also holds that each cell has exactly one neighbouring cell of the same color. The table-coloring problem is solved.

Figure 1

Now observe the case when both numbers are odd. Suppose the table is colored in the desired way. We search for a contradiction. Because the number of all cells in the table is odd, there must be an odd number of cells of one of the two colors, say black. Number the black cells with numbers 11 to 2z12z-1 for some natural number zz. Let the number of all black neighbours of the cell numbered ii be kiNk_i \in \mathbb{N}. The number of all unordered pairs of neighbouring black-colored cells must then be equal to
k1+k2++k2z12 \frac{k_1 + k_2 + \dots + k_{2z-1}}{2}
This holds due to the following reasoning: if we count the number of all black neighbours of all the cells in the table, we count every pair of neighbouring black cells twice. We have assumed that the table is colored in the desired way, hence all the numbers kik_i are even. The numerator of the above fraction thus contains a sum of an odd number of odd numbers, which again is an odd number. From this we conclude that the number of all pairs of neighbouring black cells is not an integer, which is an obvious contradiction. Hence, if numbers mm and nn are odd, the table cannot be colored in the desired way.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.