Browse · MathNet
PrintAustria2019
Austria 2019 number theory
Problem
Alice and Bob play a game that allows the playing numbers and and the two possible starting numbers and . Alice chooses her playing number and assigns the remaining playing number to Bob while Bob independently chooses the starting number.
Alice adds her playing number to the starting number, Bob adds his playing number to the sum, then Alice again adds her playing number to this new sum and so on. The game lasts till the number is reached or exceeded.
A player who obtains exactly wins. If is exceeded, the game ends in a draw.
Show that Bob cannot win. Which starting number does Bob have to choose in order to prevent Alice from winning?
Alice adds her playing number to the starting number, Bob adds his playing number to the sum, then Alice again adds her playing number to this new sum and so on. The game lasts till the number is reached or exceeded.
A player who obtains exactly wins. If is exceeded, the game ends in a draw.
Show that Bob cannot win. Which starting number does Bob have to choose in order to prevent Alice from winning?
Solution
Let be the starting number and Alice's playing number and Bob's playing number. Furthermore, let be the number of rounds of the game (i.e., the number of times that Bob adds his number).
In order for Bob to win, the equation must have an integer solution for . But neither nor satisfy this condition, as neither nor is divisible by . Hence Bob cannot win. In fact, and .
In order for Alice to win, the equation has to be satisfied for some . As by definition, this can only work for , which implies . Therefore, we have and .
We conclude that Bob has to choose as starting number in order not to lose the game.
In order for Bob to win, the equation must have an integer solution for . But neither nor satisfy this condition, as neither nor is divisible by . Hence Bob cannot win. In fact, and .
In order for Alice to win, the equation has to be satisfied for some . As by definition, this can only work for , which implies . Therefore, we have and .
We conclude that Bob has to choose as starting number in order not to lose the game.
Final answer
Bob cannot win; Bob should choose starting number 9.
Techniques
Modular ArithmeticGames / greedy algorithms