返回题库

PUMaC 2007 · 组合(A 组) · 第 5 题

PUMaC 2007 — Combinatorics (Division A) — Problem 5

专题
Contest Math / 竞赛数学
难度
L3
来源
PUMaC

题目详情

Bob 不断掷公平六面骰,直到点数和至少为 700700。求所需掷骰次数的期望,允许 0.00010.0001 误差。

英文原题

Bob rolls a fair six-sided die until the sum of his rolls is at least 700700. What is the expected number of rolls needed? Answers within 0.00010.0001 are accepted.

解析

设 E(n)E(n) 为距离目标还差至少 nn 点时所需掷骰次数的期望。则 n≤0n\le0 时 E(n)=0E(n)=0,而 n>0n>0 时

E(n)=1+16∑i=16E(n−i).E(n)=1+\frac16\sum_{i=1}^6 E(n-i).

按该递推计算到 n=700n=700,得到

E(700)=200.476190476….E(700)=200.476190476\ldots.

因此可提交

200.4762.\boxed{200.4762}.

英文解析

Let E(n)E(n) be the expected number of rolls needed to reach a remaining target of at least nn. Then E(n)=0E(n)=0 for n≤0n\le0, and for n>0n>0,

E(n)=1+16∑i=16E(n−i).E(n)=1+\frac16\sum_{i=1}^6 E(n-i).

Iterating this recurrence to n=700n=700 gives

E(700)=200.476190476….E(700)=200.476190476\ldots.

Thus an accepted answer is

200.4762.\boxed{200.4762}.