$A$ and $B$ play a folk game as follows. There are $n$ sticks on the table. Each person takes turns picking up the number of sticks that are one of three numbers $1,2$ or $3$. If the last person is picked up, it will be the winner. Who will be the winner if $A$ is always the first to go?
For example:
- With $n=3$. The result is $A$ because $A$ picks up $3$ stick and win.
- With $n=4$. The result is $B$ because:
- If $A$ picks up $3$ sticks then $B$ picks up $1$ stick and win.
- If $A$ picks up $2$ sticks then $B$ picks up $2$ sticks and win.
- If $A$ picks up $1$ sticks then $B$ picks up $3$ sticks ans win.
Finally, in this case $B$ always wins.
My problem is to defining who is the winner when we know $n$.