Problem 629
Scatterstone Nim
Alice and Bob are playing a modified game of Nim called Scatterstone Nim, with Alice going first, alternating turns with Bob. The game begins with an arbitrary set of stone piles with a total number of stones equal to
During a player’s turn, he/she must pick a pile having at least
If no valid move is possible on a given turn, then the other player wins the game.
A winning position is defined as a set of stone piles where a player can ultimately ensure victory no matter what the other player does.
Let
Let
Find
分堆取石子游戏
爱丽丝和鲍勃正在玩一个分堆取石子游戏,爱丽丝先行动,然后轮到鲍勃,如此交替。游戏开始时,将
轮到任一玩家行动时,该玩家先选择一堆至少有
如果轮到某一玩家时没有可行的行动,则对手获胜。
如果玩家在面对特定的石子分堆时,无论对手如何行动,总能保证自己获得最终的胜利,则称之为必胜态。
对于给定的
记
求
Gitalking ...