Problem

Source: 2019 Swedish Mathematical Competition p3

Tags: combinatorics, game, game strategy, winning strategy



There are two bowls on a table, one white and one black. In the white bowl there $2019$ balls. Players $A$ and $B$ play a game where they make every other move ($A$ begins). One move consists is $\bullet$ to move one or your balls from one bowl to the other, or $\bullet$ to remove a ball from the white bowl, with the condition that the resulting position (that is, the number of bullets in the two bowls) have not occurred before. The player who has no valid move to make loses. Can any of the players be sure to win? If so, which one?