Skip to main content
OlympiadHQ

Browse · MathNet

Print

China-TST-2025A

China 2025 counting and probability

Problem

Given an odd integer and a regular -gon with vertex set , let denote the set of all regular polygons with vertices in . For example, if , then includes 1 regular 15-gon, 3 regular pentagons, and 5 equilateral triangles.

Two players, Alice and Bob, play the following game. Initially, all points in are uncolored. Alice moves first, and they take turns coloring an uncolored point in : Alice colors red, and Bob colors blue. The game ends when all points are colored. A polygon in is called red-dominated if it has more red vertices than blue ones.

Find the largest integer such that, no matter how Bob plays, Alice can guarantee at least red-dominated polygons in at the end.
Solution
The maximal integer is . (Note that from this formula, and have the same parity.)

Label the vertices of as , with indices considered modulo .

We say a coloring is perfect if there exists such that is red, and for any , and are colored with different colors (one red and one blue).

First, we show that for a perfect coloring, the number of good polygons is . Without loss of generality, assume .

For each divisor of , there are regular -gons in of two types:

1)

2) where .

The regular -gon is always good because is red, while for , and have different colors.

For , the polygons and have corresponding vertices and with different colors, so exactly one of these two polygons must be good.

Therefore, the number of good polygons in a perfect coloring is:

Now we show Alice can guarantee at least good polygons by ensuring a perfect coloring. Alice first colors red. Then, whenever Bob colors () blue, Alice colors red. Since is odd, this strategy can be executed.

Conversely, Bob can ensure at most good polygons by also enforcing a perfect coloring. After Alice colors her first point red (wlog assume it's ), Bob pairs with for .

Bob starts by coloring any unpaired point blue. Subsequently, after Alice's move: - If Alice colors a point whose paired point is uncolored, Bob colors its pair blue. - Otherwise, Bob colors any remaining uncolored point blue.

This ensures a perfect coloring, limiting good polygons to .

Combining both strategies, the maximal integer is .
Final answer
(σ(n) + τ(n) - n - 1) / 2

Techniques

Coloring schemes, extremal argumentsGames / greedy algorithmsEnumeration with symmetryσ (sum of divisors)τ (number of divisors)