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