Master Mathematics.

Quantitative Finance · Brainteasers, Games & Random Walks · Problem 2

Taking 1, 2 or 3 stones

There are 1000 stones on a table. Two players take turns taking off either 1, 2, or 3 stones per turn. The player to take the last stone off is the winner. Does the first or second player have the advantage in this game?

Source: Quant interview problems