---
id: 5900f4031000cf542c50ff16
challengeType: 5
title: 'Problem 151: Paper sheets of standard sizes: an expected-value problem'
videoUrl: ''
localeTitle: ''
---

## Description
<section id="description">印刷车间每周运行16批（工作），每批需要一张A5尺寸的特殊颜色纸。每个星期一早上，工头打开一个新信封，里面装着一张大小为A1的特殊纸张。他继续把它切成两半，从而得到两张A2尺寸的纸。然后，他将其中一个切成两半，得到两张A3尺寸，依此类推，直到他获得了本周第一批所需的A5尺寸纸张。所有未使用的纸张都放回信封中。 <p>在每个后续批次开始时，他随机从信封中取出一张纸。如果它的大小为A5，他会使用它。如果它更大，他会重复“切成两半”的程序，直到他有他需要的东西，任何剩余的床单总是放回信封里。排除本周的第一批和最后一批，找到工头在信封中找到一张纸的预期次数（每周）。使用格式x.xxxxxx将您的答案四舍五入到小数点后六位。 </p></section>

## Instructions
undefined

## Tests
<section id='tests'>

```yml
tests:
  - text: ''
    testString: 'assert.strictEqual(euler151(), 0.464399, "<code>euler151()</code> should return 0.464399.");'

```

</section>

## Challenge Seed
<section id='challengeSeed'>

<div id='js-seed'>

```js
function euler151() {
  // Good luck!
  return true;
}

euler151();

```

</div>



</section>

## Solution
<section id='solution'>

```js
// solution required
```
</section>
