Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function P(numDraws) {
- return 1 - (math.combinations(3, 0) * math.combinations(37, numDraws)) / math.combinations(40, numDraws)
- }
- let ans = [];
- for (var i = 1; i < 40; i++) { ans.push(i); }
- ans = ans.map(x => P(x));
Add Comment
Please, Sign In to add comment