1.2 KiB
1.2 KiB
id | challengeType | title |
---|---|---|
5900f4041000cf542c50ff17 | 5 | Problem 152: Writing one half as a sum of inverse squares |
Description
In fact, only using integers between 2 and 45 inclusive, there are exactly three ways to do it, the remaining two being: {2,3,4,6,7,9,10,20,28,35,36,45} and {2,3,4,6,7,9,12,15,28,30,35,36,45}. How many ways are there to write the number 1/2 as a sum of inverse squares using distinct integers between 2 and 80 inclusive?
Instructions
Tests
tests:
- text: <code>euler152()</code> should return 301.
testString: assert.strictEqual(euler152(), 301, '<code>euler152()</code> should return 301.');
Challenge Seed
function euler152() {
// Good luck!
return true;
}
euler152();
Solution
// solution required