Daily

Random

Practice set

Baltic Way 2021 · Problem 7

Combinatorics

Let n>2n>2 be an integer. Anna, Edda and Magni play a game on a hexagonal board tiled with regular hexagons, with nn tiles on each side. The figure shows a board with 5 tiles on each side. The central tile is marked. The game begins with a stone on a tile in one corner of the board. Edda and Magni are on the same team, playing against Anna, and they win if the stone is on the central tile at the end of any player's turn. Anna, Edda and Magni take turns moving the stone: Anna begins, then Edda and then Magni, and so on.

The rules for each player's turn are:

  • Anna has to move the stone to an adjacent tile, in any direction.

Example hexagonal board with 5 tiles on each side and marked centre.

  • Edda has to move the stone straight by two tiles in any of the 6 possible directions.
  • Magni has a choice of passing his turn, or moving the stone straight by three tiles in any of the 6 possible directions.

Find all nn for which Edda and Magni have a winning strategy.

Change pool

When you’re ready

Review material becomes available with the next Daily.

Review

Topics

Colorings and configurations · Pigeonhole and extremal arguments · Games and strategies

Solutions

Solution

We colour the board in three colours in such a way that no neighbouring tiles are of the same colour. We can give each hexagon a coordinate using e⃗1=(1,0)\vec{e}_1 = (1, 0) and e⃗2=(cos⁡(120∘),sin⁡(120∘))=(−12,32)\vec{e}_2 = (\cos(120^\circ), \sin(120^\circ)) = (\frac{-1}{2}, \frac{\sqrt{3}}{2}) as basis. Let the center square be the origin. Then each hexagon has center at a⋅e⃗1+b⋅e⃗2a \cdot \vec{e}_1 + b \cdot \vec{e}_2, (a,b)∈Z2(a, b) \in \mathbb{Z}^2. The tuple (a,b)(a, b) is the coordinate for a given hexagon; its neighbours are (a+1,b)(a + 1, b), (a+1,b+1)(a + 1, b + 1), (a,b+1)(a, b + 1), (a−1,b)(a - 1, b), (a−1,b−1)(a - 1, b - 1) and (a,b−1)(a, b - 1).

We colour the hexagon with coordinates (a,b)(a, b) with colour number (a+b)(mod3)(a+b) \pmod{3}. It is clear that neighbouring hexagons do not share a colour. (In fact this is the only three colouring of a hexagonal tiling). See figure 8.

We see that if n≡1(mod3)n \equiv 1 \pmod{3}, the token begins in a space in the same colour as the center hexagon, let that colour be grey. By regarding a few cases, we see that whatever Anne does, Ellie and Milo can end their turns by getting the token to a prescribed grey hexagon of the closest grey hexagons. Therefore they can get the token to the center.

If n≢1(mod3)n \not\equiv 1 \pmod{3}, the token does not begin on the same grey colour as the center. Say the stone begins on a white tile, and say the third colour is black. Anne can always move the stone to a grey hexagon that is not on the same horizontal/diagonal line as the center hexagon. Then Anne moves the stone to a white or black hexagon. After Milo moves the token is still again on a white/black hexagon. Anne can continue this indefinitely, with the token never reaching the center.

Contest context

Results from Baltic Way 2021

12 teams

Mean score
3.8 / 5
Scores of 4 or 5
10 / 12
Estonia
4 / 5

Score distribution

01
11
20
30
45
55
All team scores
TeamScore
St. Petersburg5 / 5
Estonia4 / 5
Germany4 / 5
Latvia5 / 5
Lithuania4 / 5
Poland5 / 5
Denmark5 / 5
Norway4 / 5
Finland0 / 5
Sweden5 / 5
Iceland1 / 5
Ireland4 / 5