* fix: clean-up Project Euler 221-240 * fix: corrections from review Co-authored-by: Tom <20648924+moT01@users.noreply.github.com> Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
1.3 KiB
1.3 KiB
id, title, challengeType, forumTopicId, dashedName
| id | title | challengeType | forumTopicId | dashedName |
|---|---|---|---|---|
| 5900f4511000cf542c50ff62 | Problem 226: A Scoop of Blancmange | 5 | 301869 | problem-226-a-scoop-of-blancmange |
--description--
The blancmange curve is the set of points (x,$y$) such that 0 ≤ x ≤ 1 and \displaystyle y = \sum_{n = 0}^{\infty} \frac{s(2^nx)}{2^n}, where s(x) is the distance from x to the nearest integer.
The area under the blancmange curve is equal to \frac{1}{2}, shown in pink in the diagram below.
Let C be the circle with centre (\frac{1}{4},$\frac{1}{2}$) and radius \frac{1}{4}, shown in black in the diagram.
What area under the blancmange curve is enclosed by C? Give your answer rounded to eight decimal places in the form 0.abcdefgh
--hints--
scoopOfBlancmange() should return 0.11316017.
assert.strictEqual(scoopOfBlancmange(), 0.11316017);
--seed--
--seed-contents--
function scoopOfBlancmange() {
return true;
}
scoopOfBlancmange();
--solutions--
// solution required