Each of the squares in a grid is to be colored red, blue, or yellow in such a way that each red square shares an edge with at least one blue square, each blue square shares an edge with at least one yellow square, and each yellow square shares an edge with at least one red square. Colorings that can be obtained from one another by rotations and/or reflections are to be considered the same. How many different colorings are possible?
- A)
- B)
- C)
- D)
- E)
Answer
C
Key insight
Writing the colours as 0, 1, 2 turns all three rules into 'every square has a neighbour one greater mod 3', which forces each corner's value.
Solution
Write red , blue , yellow , and read colours modulo . The three rules become a single rule:
> every square has a neighbour whose colour is one more than its own.
Name the cells: the centre ; the four edge cells ; and the four corners, each named by the two edge cells it sits between, so lies between and , and so on. A corner touches only two edge cells; the centre touches only the four edge cells.
Step 1: what a corner can do. Let a corner lie between edge cells of colours and . Its own colour needs a neighbour , and its only neighbours are those two edge cells, so
For that corner to be the neighbour required by the edge cell of colour , we would need . Since , this forces , that is . So:
> a corner can serve an edge cell only when the edge cell on the corner's other side is coloured one less than , and in that case the corner's colour is forced to be .
The centre serves an edge cell exactly when , and the centre itself needs some edge cell coloured .
Step 2: all three colours appear among . Suppose a colour appears on an edge cell while appears on none. By Step 1 no corner can serve those cells, so the centre must, giving ; then the centre needs an edge cell of colour .
- If the edge cells use only one colour , then is missing, so and a cell of colour is required — there is none.
- If they use exactly two colours and , then and cannot both hold (they would give ). So some used colour has missing, forcing and requiring an edge cell of colour , which is missing.
Both are impossible, so the four edge cells carry all three colours: one colour twice and the other two once each.
Step 3: the centre is forced. There are two shapes.
on opposite edge cells. Say ; then , and by reflecting the picture take , . Both cells flanking and both flanking are coloured . A corner serves only if , which is true; it serves only if , which is false. So must be served by the centre: . The centre then needs colour , supplied by .
on adjacent edge cells. Say , with and carrying the other two colours. A corner serves only if one of its flanking cells, or , equals , i.e. only if ; likewise a corner serves only if . Exactly one of equals , so exactly one of must fall to the centre — and either way . The centre then needs colour , which is present.
Step 4: filling in the corners. Take ; the other two values of simply relabel the colours.
Opposite case: , , , . The allowed corner colours from Step 1 are
- needs a : not , not , so . Similarly .
- needs a : the centre supplies it.
- needs a : so at least one of equals .
- needs a : supplies it.
Thus is , or : three colourings.
Adjacent case: , , , . The allowed corner colours are
- and are served by the centre, which is .
- needs a : only can be, so .
- needs a : only can be, so .
- is forced to ; needs a , supplied by .
- is free: either or .
Thus there are two colourings.
Step 5: dividing by the eight symmetries. Fix the repeated colour ; there are choices.
Adjacent case. The eight placements of the pattern (four rotations, then the mirror image ) form one orbit, and no non-identity symmetry fixes a placement: such a symmetry would have to fix the two edge cells carrying the unrepeated colours separately, and the only symmetry fixing other than the identity is the reflection in the line , which moves . So the colourings split into classes.
Opposite case. The four placements form one orbit, and each is fixed by exactly one non-identity symmetry: the reflection in the line , which swaps , hence and . That reflection fixes the completion and interchanges with , so the colourings split into classes.
Each choice of therefore gives classes, and
The answer is .
Why this works
Naming the colours removes the temptation to treat red, blue and yellow as three separate cases and exposes the cycle as a single "+1" condition, which is what makes Step 1 possible. The corners are the right place to start because they have the fewest neighbours, so their colours are pinned down to two possibilities before anything else is known; the centre, with four neighbours, is the most flexible cell and is settled last. The same "low degree first" strategy works for any adjacency-constraint colouring on a small board. As a check on the arithmetic, the counts above give labelled colourings, which is not a multiple of — a reminder that symmetric colourings exist and that no single division can replace the orbit count.
The trap
Counting the labelled colourings and dividing by 8, which fails because three of the twelve classes are left fixed by a reflection; 84 is not even divisible by 8.
Common mistakes
- Counting the labelled colourings and dividing by 8, which fails because three of the twelve classes are left fixed by a reflection; 84 is not even divisible by 8.
- Treating the conditions as symmetric, so that a red square next to a blue square is taken to satisfy both squares at once; the cycle red blue yellow red has a direction.
- Forgetting that a corner left "free" at the end still has to satisfy its own condition, which is what restricts it to the two values and in the first place.
Techniques
Split into exhaustive cases and handle each · Exploit symmetry to reduce work or pair up objects