Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com> Co-authored-by: Kristofer Koishigawa <scissorsneedfoodtoo@gmail.com> Co-authored-by: Beau Carnes <beaucarnes@gmail.com>
1.1 KiB
1.1 KiB
id, challengeType, isHidden, title, forumTopicId
id | challengeType | isHidden | title | forumTopicId |
---|---|---|---|---|
5900f4a01000cf542c50ffb2 | 5 | false | Problem 307: Chip Defects | 301961 |
Description
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
Instructions
Tests
tests:
- text: <code>euler307()</code> should return 0.7311720251.
testString: assert.strictEqual(euler307(), 0.7311720251);
Challenge Seed
function euler307() {
// Good luck!
return true;
}
euler307();
Solution
// solution required