Maths Olympiad Prep

Library / /69 of 86

Combinatorics Difficulty 7.4 National Olympiad, round 2 Prove it United States

Problem:

Initially, all the squares of an 8×88 \times 8 grid are white. You start by choosing one of the squares and coloring it gray. After that, you may color additional squares gray one at a time, but you may only color a square gray if it has exactly 1 or 3 gray neighbors at that moment (where a neighbor is a square sharing an edge). For example, the configuration below (of a smaller 3×43 \times 4 grid) shows a situation where six squares have been colored gray so far. The squares that can be colored at the next step are marked with a dot.

Figure 1

Is it possible to color all the squares gray? Justify your answer.

Solution

Solution:

It is not possible. Let L(t)L(t) denote the length of the boundary of the gray region after tt squares have been colored gray. We have L(1)=4L(1) = 4 since the perimeter of the first square colored is 44. After t1t \geq 1 squares have been colored, if we add a square that has exactly one gray neighbor, the edge shared with that neighbor disappears from the boundary but is replaced by three new edges, so L(t+1)=L(t)+2L(t+1) = L(t) + 2. If we add a square that has exactly three neighbors, all three neighboring edges disappear from the boundary, but there will be one new edge, so L(t+1)=L(t)2L(t+1) = L(t) - 2. In either case, every move after the first changes LL by 2(mod4)2 \pmod{4}.

Since L(1)L(1) is a multiple of 44, L(t)L(t) will be a multiple of 44 whenever tt is odd, and L(t)L(t) will be congruent to 2(mod4)2 \pmod{4} whenever tt is even (t2)(t \geq 2). Thus if all 6464 squares could be colored in, L(64)L(64) would be congruent to 2(mod4)2 \pmod{4}. But L(64)L(64) would have to equal the perimeter of the grid, which is 3232, a multiple of 44. This is a contradiction.

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.