1.4 KiB
1.4 KiB
id | challengeType | title |
---|---|---|
5900f4a11000cf542c50ffb4 | 5 | Problem 309: Integer Ladders |
Description
Here, we are only concerned with instances where all four variables are positive integers. For example, if x = 70, y = 119 and h = 30, we can calculate that w = 56.
In fact, for integer values x, y, h and 0 < x < y < 200, there are only five triplets (x,y,h) producing integer solutions for w: (70, 119, 30), (74, 182, 21), (87, 105, 35), (100, 116, 35) and (119, 175, 40).
For integer values x, y, h and 0 < x < y < 1 000 000, how many triplets (x,y,h) produce integer solutions for w?
Instructions
Tests
tests:
- text: <code>euler309()</code> should return 210139.
testString: assert.strictEqual(euler309(), 210139, '<code>euler309()</code> should return 210139.');
Challenge Seed
function euler309() {
// Good luck!
return true;
}
euler309();
Solution
// solution required