Different Dice
Using only a six-sided fair dice and a five-sided fair dice, we would like to emulate an -sided fair dice.
For example, one way to emulate a -sided dice is to follow this procedure:
- Roll both dice, obtaining integers and .
- Combine them using to obtain an integer .
- If , return the value and stop.
- Otherwise ( being or ), roll both dice again, obtaining integers and .
- Compute to obtain an integer .
- If , return the value and stop.
- Otherwise (with ), roll the six-sided dice twice, obtaining integers and .
- Compute to obtain an integer .
- If , return the value and stop.
- Otherwise (with ), assign and go back to step .
The expected number of dice rolls in following this procedure is (rounded to decimal places). Note that rolling both dice at the same time is still counted as two dice rolls.
There exist other more complex procedures for emulating a -sided dice that entail a smaller average number of dice rolls. However, the above procedure has the attractive property that the sequence of dice rolled is predetermined: regardless of the outcome, it follows , truncated wherever the process stops. In fact, amongst procedures for with this restriction, this one is optimal in the sense of minimising the expected number of rolls needed.
Different values of will in general use different predetermined sequences. For example, for , the sequence gives an optimal procedure, taking dice rolls on average.
Define to be the expected number of dice rolls for an optimal procedure for emulating an -sided dice using only a five-sided and a six-sided dice, considering only those procedures where the sequence of dice rolled is predetermined. So, and .
Let . You are given that .
Find . Give your answer rounded to decimal places.
不同的骰子
我们尝试用一枚公平的六面骰和一枚公平的五面骰来模拟一枚公平的面骰。
例如,遵照如下方案,我们可以模拟一枚面骰:
- 同时抛掷这两枚骰子,得到整数和。
- 计算,得到整数。
- 若,给出并停止。
- 否则(若为或),再次同时抛掷这两枚骰子,得到整数和。
- 计算,得到整数。
- 若,给出并停止。
- 否则(若),抛掷六面骰两次,得到和。
- 计算,得到整数。
- 若,给出并停止。
- 否则(若),令并回到第步。
遵照上述方案,抛掷骰子次数的期望为(四舍五入保留位小数)。注意同时抛掷两枚骰子被算作抛掷两次。
对于模拟面骰的问题,存在更复杂但抛掷次数期望更小的方案。然而,上述方案的特点之一是,无论结果如何,抛掷骰子的序列是事先确定的,在停止前总是遵循。事实上,在所有考虑这一额外规则的模拟面骰的方案中,上述方案所需的抛掷次数期望最小。
对于不同的,事先确定的抛掷序列也会不同。例如,对于,最优方案中的抛掷序列为,对应抛掷次数的期望为。
定义为仅使用一枚五面骰和一枚六面骰,且遵循上述“抛掷序列必须事先确定”的额外规则,以模拟面骰所需的最小期望抛掷次数。因此,,。
记。已知。
求,并四舍五入保留位小数作为你的答案。
Gitalking ...