Maths Olympiad Prep

Library / Japanese Mathematical Olympiad - The First Round /2 of 7

Japanese Mathematical Olympiad - The First Round

Combinatorics Difficulty 4.5 AIME Prove it Japan

A 3×33 \times 3 grid is given. We color each square by red or blue so that no red 2×22 \times 2 square nor blue 2×22 \times 2 square appears. How many such colorings are there?
We consider two colorings different even if they correspond by rotation and/or reversal.

Solution

We call the squares corners, edges or the center, according to their position. We first consider the case that the center is colored red. Call the edges AA, BB, CC and DD clockwise. We divide the cases by how many edges are colored red. Note that any 2×22 \times 2 square must include the center.

* If there are no red edge, or if just one was red, or if two opposing edges were colored red, then however we color the 4 corners, no 2×22 \times 2 red square appears. So we can color each of these 4 squares in arbitrary color. On the second case, we have 4 ways each to choose which edge to be colored red. On the third case, we have 2 ways. Hence this case has (1+4+2)×24=112(1+4+2) \times 2^4 = 112 ways.

* If two non-opposing edges were colored red, one corner which is between two red edges must be colored blue, and the other squares can be colored arbitrarily. So this case has 4×23=324 \times 2^3 = 32 ways.

* If there are exactly three red edges, there are exactly 2 corners which are between two red edges and they must be colored blue. Others can be arbitrary color. So this case has 4×22=164 \times 2^2 = 16 ways.

* If all the four edges are colored red, all the corners must be colored blue. There is only 1 way of coloring.

There are the same number of ways of coloring if the center square was colored blue. So we have (112+32+16+1)×2=322(112 + 32 + 16 + 1) \times 2 = 322 ways of coloring.

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

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