Skip to main content
OlympiadHQ

Browse · MathNet

Print

41st Balkan Mathematical Olympiad

counting and probability

Problem

Let be a natural number. Anna and Bob play the following game on the vertices of a regular -gon: Anna places her token on a vertex of the -gon. Afterwards Bob places his token on another vertex of the -gon. Then, with Anna playing first, they move their tokens alternately as follows for rounds: In Anna's turn on the -th round, she moves her token positions clockwise or anticlockwise. In Bob's turn on the -th round, he moves his token 1 position clockwise or anticlockwise. If at the end of any person's turn the two tokens are on the same vertex, then Anna wins the game. Otherwise Bob wins. Decide for each value of which player has a winning strategy.
Solution
Solution. We will show that Bob wins if and only if and . We will often say that Anna and Bob are at a distance if we can move one token positions clockwise or anticlockwise to reach the other token. Note that the value of this distance is not unique. We first treat the case . Given a positive integer , we define Lemma 1. If it is Anna's turn on round or round , and she is at a distance from Bob, for some , then she has a winning strategy. Before proving the Lemma, we show why this implies that Anna has a winning strategy in the case . Note that In particular, consists of all odd or of all even numbers in . If is odd, the clockwise and the anti-clockwise distance of Anna from Bob have opposite parities so Anna is at a distance from Bob for some . Applying the Lemma for we see that Anna has a winning strategy. If , then , so is odd. A same argument as above shows that Anna has a winning strategy if is also odd. If is even then we apply the Lemma in the same way with and Anna has a winning strategy since is even (and ). Proof. (of Lemma 1) We proceed by induction on . For we have and and since we are in round or she has a winning strategy.

---

Assume the result is true for . For the inductive step suppose it is now Anna's turn on round or round and she is at a distance from Bob, for some . By moving her token , or positions in the opposite direction, she is now at a distance of positions from Bob. After Bob's move they will have a distance of for some . Note that all of these numbers have the same parity as . Furthermore, and (Here we assumed that as otherwise Anna already won.) Since in all cases and , then . Therefore Anna wins by the induction hypothesis. We now treat the case , say . If it is easy to see that Anna wins in at most two rounds so assume . Bob places his token so that . Note that Anna cannot win on her first move. Let denote the distance after Anna's move on the -th round and the distance after Bob's move on the -th round. Then modulo 2 the sequence is which then repeats periodically with period 8. Bob's strategy consists of two parts. The first part is that he never places his token on Anna's token and also he never moves his token on a position where he will immediately lose on Anna's next step unless he is really forced to do this. Before explaining the second part of Bob's strategy let us assume for contradiction that Anna has a winning strategy and look at Bob's last move. Due to the first part of his strategy he could perhaps lose only in the following two cases: (a) Before his last move so he is forced to make it and then Anna wins. (b) Before his last move so he is forced to make it ( is the same) and then Anna wins. In case (a) Anna wins on a round of the form which is impossible as on those rounds is odd after Anna's move In case (b) Anna wins on rounds of the form or . Actually rounds of the form are rejected since in that case we would have when Bob was playing on round but that could only be possible if when Anna was playing on round . This is rejected as it means that Anna won on an earlier round.

So in case (b) Anna wins on rounds of the form . If is even, say , this is impossible as on round we have that is odd after Anna's move. So we need to show how Bob can avoid case (b) if is odd, say . He needs to avoid when it's his turn to play on rounds of the form . This can only occur if when it's Anna's turn to play on rounds of the form . Bob can avoid this unless when it's his turn to play on rounds of the form . This can only occur if or when it's Anna's turn to play on rounds of the form . Bob can avoid both of these cases unless when it's his turn to play on rounds of the form . This can only occur if or when it's Anna's turn to play on rounds of the form . But Bob can avoid both of these on his move (on rounds of the form ). The only potential issue would be if which is not the case here.
Final answer
Bob wins if and only if the number of sides is divisible by four and not equal to four; otherwise Anna wins.

Techniques

Games / greedy algorithmsInvariants / monovariantsInduction / smoothing