2018-09-30 22:01:58 +00:00
---
id: 5900f4f21000cf542c510005
title: 'Problem 390: Triangles with non rational sides and integral area'
2020-11-27 18:02:05 +00:00
challengeType: 5
2019-08-05 16:17:33 +00:00
forumTopicId: 302055
2021-01-13 02:31:00 +00:00
dashedName: problem-390-triangles-with-non-rational-sides-and-integral-area
2018-09-30 22:01:58 +00:00
---
2020-11-27 18:02:05 +00:00
# --description--
2018-09-30 22:01:58 +00:00
Consider the triangle with sides √5, √65 and √68.
2020-11-27 18:02:05 +00:00
2018-09-30 22:01:58 +00:00
It can be shown that this triangle has area 9.
2020-11-27 18:02:05 +00:00
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.
2018-09-30 22:01:58 +00:00
The example triangle has b=2 and c=8.
S(106)=18018206.
Find S(1010).
2020-11-27 18:02:05 +00:00
# --hints--
2018-09-30 22:01:58 +00:00
2020-11-27 18:02:05 +00:00
`euler390()` should return 2919133642971.
2018-09-30 22:01:58 +00:00
2020-11-27 18:02:05 +00:00
```js
assert.strictEqual(euler390(), 2919133642971);
2018-09-30 22:01:58 +00:00
```
2020-11-27 18:02:05 +00:00
# --seed--
2018-09-30 22:01:58 +00:00
2020-11-27 18:02:05 +00:00
## --seed-contents--
2018-09-30 22:01:58 +00:00
```js
function euler390() {
2020-09-15 16:57:40 +00:00
2018-09-30 22:01:58 +00:00
return true;
}
euler390();
```
2020-11-27 18:02:05 +00:00
# --solutions--
2018-09-30 22:01:58 +00:00
```js
// solution required
```