973. Random Dealings

A game is played with n cards. At the start the cards are dealt out onto a table to get n piles of size one.

Each round proceeds as follows:

The game ends when all cards are in a single pile.

At the end of each round a score is obtained by bitwise-XORing the size of each pile. The score is summed across the rounds. Let X(n) be the expected total score at the end of the game.

You are given X(2)=2, X(4)=14 and X(10)=1418.

Find X(104). Give your answer modulo 109+7.

973. 随机发牌

我们用 n 张牌玩一个游戏:初始时,我们把牌分发到桌面上,形成 n 个只含一张牌的牌堆。

接下来每一轮的流程如下:

当所有排都处于同一牌堆中时,游戏结束,

每轮游戏结束时,我们将每个牌堆所含牌数作异或,作为此轮的分数。游戏的最终得分是每一轮分数的加和。记 X(n) 是游戏的最终得分的期望。

已知 X(2)=2X(4)=14X(10)=1418

X(104)(109+7) 的值。


这个链接 回到源站。

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