All positive integers from $1$ to $n$ are written in a row in increasing order. Two players, $A$ and $B$ are playing a game where they each take turns erasing two consecutive numbers from the row and replacing them either by their product or their sum. Player $A$ wins if the last remaining number is odd, otherwise player $B$ wins. If player $A$ takes the first turn, find all possible values of $n$ for which player $A$ has a winning strategy.
This is a problem from a mock contest of last week. Here is my progress in solving the problem:
The game ends after $n-1$ turns. Since player $A$ takes the first turn, he can take the last turn for even $n$s. He can win the game if he is left with two odd numbers (by taking their product) or one odd and one even number (by taking their sum) before the last turn. But he can't win the game if he is somehow left with two even numbers before the last turn.
But for odd $n$s, player $B$ takes the last turn. He can make an even number in the last turn when he is left with two even numbers (by taking their sum or product) or two odd numbers (by taking their sum) or one odd and one even number (by taking their product) before the last turn. Thus, player $B$ can always win for odd $n$s.
Hence, player $A$ can win only for even numbers but not for all even numbers. I further claim that he has a winning strategy only if $n\equiv 2 (\bmod 4)$ noticing the cases $n=2$ and $n=4$. But I couldn't prove this.
So, I currently need a proof to the claim. Also, some other methods to solve the problem are welcome.
Edit: I made a mistake in the case $n=4$. So, my above claim is not correct.