Problem 568
Reciprocal games II
Tom has built a random generator that is connected to a row of n light bulbs. Whenever the random generator is activated each of the n lights is turned on with the probability of
While discussing with his friend Jerry how to use his generator, they invent two different games, they call the reciprocal games:
Both games consist of n turns. Each turn is started by choosing a number k randomly between (and including) 1 and n, with equal probability of
In game A, Tom activates his random generator once in each turn. If the number of lights turned on is the same as the previously choosen number k, Jerry wins and gets
For each turn in game B, after k has been randomly selected, Tom keeps reactivating his random generator until exactly k lights are turned on. After that Jerry takes over and reactivates the random generator until he, too, has generated a pattern with exactly k lights turned on. If this pattern is identical to Tom’s last pattern, Jerry wins and gets
Let
Find the 7 most significant digits of D(123456789) after removing all leading zeros.
(If, for example, we had asked for the 7 most significant digits of D(6), the answer would have been 3828125.)
倒数游戏II
汤姆制作了一台连接着n个电灯泡的随机发电机。每次启动发电机,n个灯泡就会各自以
当他和朋友杰瑞讨论这台发电机时,他们发明了两个不同的游戏,都称为倒数游戏:这两个游戏都进行n轮,每一轮开始时先随机地在1到n(包括1和n)中等概率地选择一个整数k,这一轮的胜者收益将会是k的倒数,也就是
在游戏A中,汤姆在每一轮中只启动随机发电机一次。如果发光的灯数和之前选择的数k一致,杰瑞获胜并获得收益
在游戏B中,选定整数k后,汤姆不断地重启随机发电机,直至恰好有k个灯泡发光,然后由杰瑞接手发电机,不断重启直至再次出现有k个灯泡发光。如果杰瑞得到的k个发光灯泡恰好就是汤姆得到的k个发光灯泡,那么杰瑞获胜并获得收益
记
求D(123456789)去掉前导0后的7位有效数字。
(例如,如果要求D(6)去掉前导0后的7位有效数字,答案应该是3828125。)
Gitalking ...