1.5 KiB
1.5 KiB
id | challengeType | title | forumTopicId |
---|---|---|---|
5900f4f71000cf542c510009 | 5 | Problem 394: Eating pie | 302059 |
Description
For x ≥ 1, let E(x) be the expected number of times Jeff repeats the procedure above with F = 1/x. It can be verified that E(1) = 1, E(2) ≈ 1.2676536759, and E(7.5) ≈ 2.1215732071.
Find E(40) rounded to 10 decimal places behind the decimal point.
Instructions
Tests
tests:
- text: <code>euler394()</code> should return 3.2370342194.
testString: assert.strictEqual(euler394(), 3.2370342194);
Challenge Seed
function euler394() {
// Good luck!
return true;
}
euler394();
Solution
// solution required