Suppose there is a pile of stones on the table. Two person take stones off the table in turn. The rule of taking stones is as following:

Under these rules, whoever take the last stone wins. The outcome of this game depends on the initial amount and the multiple factor K mentioned above. The following is a Java Applet that lets you play this game with the computer. You can set the initial amount and the multiple factor at your wish. Then click START to start the game. Click SEND each time you filled the pick amount. The K factor should be between 2 and 100, the initial amount should be less than 10000 for practicle use. Good luck.