Amy and Beck are playing 'taking the stones game'. There are 18 stones on the table, and the two people take stones in turns. The first move of the starting player can take 1 to 4 stones. For the rest of the game, each player takes a number of stones from 1 up to twice the number of stones his/her opponent just took. The player taking the last stone wins. Amy comes first. If Amy has a winning strategy, how many stones should Amy take? (at the start) If Amy does not have a winning strategy, write '0'.
I tried like copying same moves for Amy and Beck etc. and did a few manual computations to see that it's not possible. An answer key with no solution says that there is no winning strategy as it gives "0" as the answer. Anyone know how to prove it? Is there an invariant or something which I am missing? I have some background in Math Olympiad and a Math related degree so feel free to use any techniques.
Given that you have Math Olympiad background, I assume that you're familiar with setting up winning positions. You might think that doesn't work here because we don't have exact / clean-cut winning positions on $n$ stones, since gameplay also depends on how many stones the previous player took. That is fine, we simply make the winning positions conditional on how many stones the current player can take, namely $(n, k)$, where $n$ is the number of stones left, and $k$ is how many they can remove. The question asks if $(18, 4)$ is a winning position, and how to play it.
We proceed via the typical recursive Winning Positions analysis. The solution is intentionally left incomplete. I've gotten you started almost till the very end. Can you complete it to 18 stones?
First, some initial observations
Now, let's construct the winning positions: