Skip to main content
OlympiadHQ

Browse · MathNet

Print

AUT_ABooklet_2023

Austria 2023 counting and probability

Problem

Alice and Bob play a game on a strip of squares with two game pieces. At the beginning, Alice's piece is on the first square while Bob's piece is on the last square. The figure shows the starting position for a strip of squares.
problem


The players alternate. In each move, they advance their own game piece by one or two squares in the direction of the opponent's piece. The piece has to land on an empty square without jumping over the opponent's piece. Alice makes the first move with her own piece. If a player cannot move, they lose.

For which can Bob ensure a win no matter how Alice plays? For which can Alice ensure a win no matter how Bob plays?
Solution
Bob wins for with , Alice wins for all other .

It is easily checked that Alice wins for 3, 4, 6 and 7 squares while Bob wins for 5 or 8 squares. We conjecture that Bob wins for all of the form and prove it by induction.

We include the case which is obvious because Alice loses immediately.

Now, we assume that Bob can assure a win for squares for a certain natural number . Now, we want to prove that he can ensure a win for .

It is enough that Bob makes exactly the opposite move of Alice after her first move: If she moves by 1, he moves 2. If she moves by 2, he moves 1. This ensures that the distance between the two game pieces is reduced by 3 and the game continues as if it were a new game with squares where we already know that Bob can ensure a win.

Therefore, we have proved that Bob can win for all .

Now, it remains to show that Alice can win for all of the form and .

In the case of squares, she starts the game by moving 1 such that the remaining game is played on squares with Bob making the first move. So we already know that Alice as the second player can ensure a win.

In the case of , Alice starts with 2 which again reduces the game to a game with squares with Bob making the first move.

We can conclude that Bob can ensure a win for all , and Alice can ensure a win for all other .

(Theresia Eisenkölbl) ☐
Final answer
Bob can force a win exactly when n ≡ 2 (mod 3). Alice can force a win for all other n ≥ 3.

Techniques

Games / greedy algorithmsInvariants / monovariantsInduction / smoothing