899. DistribuNim I

Two players play a game with two piles of stones. The players alternately take stones from one or both piles, subject to:

The player that is unable to move loses.

For example, if the piles are of sizes 3 and 5 then there are three possible moves.

(3,5)(2,1)(1,4)(3,5)(1,2)(2,3)(3,5)(0,3)(3,2)

Let L(n) be the number of ordered pairs (a,b) with 1a,bn such that the initial game position with piles of sizes a and b is losing for the first player assuming optimal play.

You are given L(7)=21 and L(72)=221.

Find L(717).

899. 分布式取石子游戏 1

两位玩家用两堆石子玩游戏,两人须在遵守如下规则的同时,轮流从一个石堆或者两个石堆中取石子:

首先无法操作的玩家落败。

例如,倘若初始时两个石堆各含 3、5 枚石子,那么此时先手有三种可行操作:

(3,5)(2,1)(1,4)(3,5)(1,2)(2,3)(3,5)(0,3)(3,2)

L(n) 为满足如下条件的有序对 (a,b) 的数量:1a,bn,且若初始时两个石堆各含 ab 枚石子,那么在两位玩家都以最优策略操作时,先手必败。

已知 L(7)=21L(72)=221

L(717)


这个链接 回到源站。

这个链接 回到详细版题目目录。