Learn / Library / Brainteasers
Running total race
players build a running total that starts at . On each turn the player to move adds a whole number from to to the total. The player who makes the total exactly wins, and no move may take the total above . You move first and both players play optimally. What number should you add on your first turn to guarantee a win?
Checking an answer needs JavaScript. The hint and the solution open without it.
Hint
Work out which totals you want to leave after each of your turns, starting from .
Solution
- If you leave a total of , your opponent adds between and , reaching to , and you can then reach exactly.
- The same argument shows the safe totals step down by : , , , and so on down to , because .
- From you can reach the safe total at once, and after that you answer each opponent move of with .
- So you add on your first turn.
Answer: