Given a pile of matchsticks of finite size, 2 players take turns to remove either 1, 5 or 6 matchsticks. The loser is the person who cannot make a move. I have tried to solve this problem using a table and a directed graph, but I cannot see any patterns.
Can anyone find a winning strategy to this problem?
You want to make your opponent face a situation where there are $0,2$ or $4$ modulo $11$ sticks in the pile.
There are nine possibilities:
If the number of sticks is zero modulo $11$:
If your opponent takes $1$ then you take $6$
If your opponent takes $5$ then you take $6$
If your opponent takes $6$ then you take $5$.
If the number of sticks is $2$ modulo $11$ :
If your opponent takes $1$ then you take $1$
If your opponent takes $5$ then you take $6$
If your opponent takes $6$ then you take $5$.
If the number of sticks is $4$ modulo $11$:
If your opponent takes $1$ then you take $1$
If your opponent takes $5$ then you take $6$
If your opponent takes $6$ then you take $5$.
You will be able to drive your opponent to face an empty pile and will therefore have won.