2018-10-10 18:03:03 -04:00
---
id: 5900f4a01000cf542c50ffb2
2021-02-06 04:42:36 +00:00
title: 'Problem 307: Chip Defects'
2018-10-10 18:03:03 -04:00
challengeType: 5
2021-02-06 04:42:36 +00:00
forumTopicId: 301961
2021-01-13 03:31:00 +01:00
dashedName: problem-307-chip-defects
2018-10-10 18:03:03 -04:00
---
2020-12-16 00:37:30 -07:00
# --description--
2020-02-18 01:40:55 +09:00
2021-02-06 04:42:36 +00:00
k defects are randomly distributed amongst n integrated-circuit chips produced by a factory (any number of defects may be found on a chip and each defect is independent of the other defects).
2020-02-18 01:40:55 +09:00
2021-02-06 04:42:36 +00:00
Let p(k,n) represent the probability that there is a chip with at least 3 defects. For instance p(3,7) ≈ 0.0204081633.
2020-02-18 01:40:55 +09:00
2021-02-06 04:42:36 +00:00
Find p(20 000, 1 000 000) and give your answer rounded to 10 decimal places in the form 0.abcdefghij
2018-10-10 18:03:03 -04:00
2020-12-16 00:37:30 -07:00
# --hints--
2018-10-10 18:03:03 -04:00
2021-02-06 04:42:36 +00:00
`euler307()` should return 0.7311720251.
2018-10-10 18:03:03 -04:00
```js
2020-12-16 00:37:30 -07:00
assert.strictEqual(euler307(), 0.7311720251);
2018-10-10 18:03:03 -04:00
```
2021-01-13 03:31:00 +01:00
# --seed--
## --seed-contents--
```js
function euler307() {
return true;
}
euler307();
```
2020-12-16 00:37:30 -07:00
# --solutions--
2020-08-13 17:24:35 +02:00
2021-01-13 03:31:00 +01:00
```js
// solution required
```