872 B
872 B
id | title | challengeType | forumTopicId | dashedName |
---|---|---|---|---|
5900f4a01000cf542c50ffb2 | Problem 307: Chip Defects | 5 | 301961 | problem-307-chip-defects |
--description--
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).
Let p(k,n)
represent the probability that there is a chip with at least 3 defects. For instance p(3,7) ≈ 0.0204081633
.
Find p(20\\,000, 1\\,000\\,000)
and give your answer rounded to 10 decimal places in the form 0.abcdefghij
--hints--
chipDefects()
should return 0.7311720251
.
assert.strictEqual(chipDefects(), 0.7311720251);
--seed--
--seed-contents--
function chipDefects() {
return true;
}
chipDefects();
--solutions--
// solution required