2018-09-30 22:01:58 +00:00
---
id: 5900f5411000cf542c510053
title: 'Problem 469: Empty chairs'
2020-11-27 18:02:05 +00:00
challengeType: 5
2019-08-05 16:17:33 +00:00
forumTopicId: 302144
2021-01-13 02:31:00 +00:00
dashedName: problem-469-empty-chairs
2018-09-30 22:01:58 +00:00
---
2020-11-27 18:02:05 +00:00
# --description--
2018-09-30 22:01:58 +00:00
In a room N chairs are placed around a round table.
2020-11-27 18:02:05 +00:00
Knights enter the room one by one and choose at random an available empty chair.
2018-09-30 22:01:58 +00:00
2020-11-27 18:02:05 +00:00
To have enough elbow room the knights always leave at least one empty chair between each other.
2018-09-30 22:01:58 +00:00
2020-11-27 18:02:05 +00:00
When there aren't any suitable chairs left, the fraction C of empty chairs is determined. We also define E(N) as the expected value of C. We can verify that E(4) = 1/2 and E(6) = 5/9.
2018-09-30 22:01:58 +00:00
Find E(1018). Give your answer rounded to fourteen decimal places in the form 0.abcdefghijklmn.
2020-11-27 18:02:05 +00:00
# --hints--
2018-09-30 22:01:58 +00:00
2020-11-27 18:02:05 +00:00
`euler469()` should return 0.56766764161831.
2018-09-30 22:01:58 +00:00
2020-11-27 18:02:05 +00:00
```js
assert.strictEqual(euler469(), 0.56766764161831);
2018-09-30 22:01:58 +00:00
```
2020-11-27 18:02:05 +00:00
# --seed--
2018-09-30 22:01:58 +00:00
2020-11-27 18:02:05 +00:00
## --seed-contents--
2018-09-30 22:01:58 +00:00
```js
function euler469() {
2020-09-15 16:57:40 +00:00
2018-09-30 22:01:58 +00:00
return true;
}
euler469();
```
2020-11-27 18:02:05 +00:00
# --solutions--
2018-09-30 22:01:58 +00:00
```js
// solution required
```