1.2 KiB
1.2 KiB
id | challengeType | title | videoUrl | localeTitle |
---|---|---|---|---|
5900f4f21000cf542c510005 | 5 | Problem 390: Triangles with non rational sides and integral area | Problema 390: Triângulos com lados não racionais e área integral |
Description
S (n) é a soma das áreas de todos os triângulos com lados √ (1 + b2), √ (1 + c2) e √ (b2 + c2) (para inteiros positivos b e c) que têm uma área integral não superior a n.
O triângulo do exemplo tem b = 2 e c = 8.
S (106) = 18018206.
Encontre S (1010).
Instructions
Tests
tests:
- text: <code>euler390()</code> deve retornar 2919133642971.
testString: 'assert.strictEqual(euler390(), 2919133642971, "<code>euler390()</code> should return 2919133642971.");'
Challenge Seed
function euler390() {
// Good luck!
return true;
}
euler390();
Solution
// solution required