2024 NZMO Round 2 · Question 1
Solutions (answers with justifications) are required for all problems, including those which ask for an answer.
At each vertex of a regular -gon lies a coin. Initially coins are heads, and coins are tails. Determine the minimum number such that it is always possible to turn over at most of the coins so that in the resulting -gon, no two adjacent coins are both heads and no two adjacent coins are both tails.
Show answer and methods 2 methods
Answer
The least guaranteed number of flips is .
Method 1 Count heads on odd vertices
Number the vertices from to in cyclic order. Let be the number of heads on the seven odd vertices. Then there are heads on the seven even vertices.
There are exactly two alternating targets. To put all the heads on the odd vertices, turn the odd tails and the even heads. To put them all on the even vertices takes flips. The optimum for this starting position is therefore .
For integral from to , the largest possible value is , reached when or . For example, put heads on vertices . This position requires six flips and establishes sharpness.
Adapted from the solution by Ross Atkins · Published solution (external)
Method 2 Average the distances to the two targets
For a target, count the positions where its face differs from the starting face. This distance is the exact flip cost. The two alternating targets have opposite faces everywhere, so their distances from any start sum to .
Every target and the start have seven heads. To reach a target, the number of head-to-tail changes equals the number of tail-to-head changes, so both distances are even. Their average is ; the smaller even distance is therefore at most .
For seven consecutive heads followed by seven consecutive tails, one target agrees at eight vertices (four in each run), and the other at six. The smaller distance is exactly .