2018-09-30 23:01:58 +01:00
---
id: 5900f4f21000cf542c510005
challengeType: 5
2020-05-21 17:31:25 +02:00
isHidden: false
2018-09-30 23:01:58 +01:00
title: 'Problem 390: Triangles with non rational sides and integral area'
2019-08-05 09:17:33 -07:00
forumTopicId: 302055
2018-09-30 23:01:58 +01:00
---
## Description
< section id = 'description' >
Consider the triangle with sides √5, √65 and √68.
It can be shown that this triangle has area 9.
S(n) is the sum of the areas of all triangles with sides √(1+b2), √(1+c2) and √(b2+c2) (for positive integers b and c ) that have an integral area not exceeding n.
The example triangle has b=2 and c=8.
S(106)=18018206.
Find S(1010).
< / section >
## Instructions
< section id = 'instructions' >
< / section >
## Tests
< section id = 'tests' >
```yml
2018-10-04 14:37:37 +01:00
tests:
- text: < code > euler390()</ code > should return 2919133642971.
2019-07-26 19:41:55 -07:00
testString: assert.strictEqual(euler390(), 2919133642971);
2018-09-30 23:01:58 +01:00
```
< / section >
## Challenge Seed
< section id = 'challengeSeed' >
< div id = 'js-seed' >
```js
function euler390() {
// Good luck!
return true;
}
euler390();
```
< / div >
< / section >
## Solution
< section id = 'solution' >
```js
// solution required
```
2019-07-18 08:24:12 -07:00
2018-09-30 23:01:58 +01:00
< / section >