2018-10-10 18:03:03 -04:00
---
id: 5900f4461000cf542c50ff59
2021-02-06 04:42:36 +00:00
title: 'Problem 218: Perfect right-angled triangles'
2018-10-10 18:03:03 -04:00
challengeType: 5
2021-02-06 04:42:36 +00:00
forumTopicId: 301860
2021-01-13 03:31:00 +01:00
dashedName: problem-218-perfect-right-angled-triangles
2018-10-10 18:03:03 -04:00
---
2020-12-16 00:37:30 -07:00
# --description--
2018-10-10 18:03:03 -04:00
2021-02-06 04:42:36 +00:00
Consider the right angled triangle with sides a=7, b=24 and c=25.
2018-10-10 18:03:03 -04:00
2021-02-06 04:42:36 +00:00
The area of this triangle is 84, which is divisible by the perfect numbers 6 and 28.
2018-10-10 18:03:03 -04:00
2021-02-06 04:42:36 +00:00
Moreover it is a primitive right angled triangle as gcd(a,b)=1 and gcd(b,c)=1.
2018-10-10 18:03:03 -04:00
2021-02-06 04:42:36 +00:00
Also c is a perfect square.
We will call a right angled triangle perfect if -it is a primitive right angled triangle -its hypotenuse is a perfect square
We will call a right angled triangle super-perfect if -it is a perfect right angled triangle and -its area is a multiple of the perfect numbers 6 and 28.
How many perfect right-angled triangles with c≤1016 exist that are not super-perfect?
2018-10-10 18:03:03 -04:00
2020-12-16 00:37:30 -07:00
# --hints--
2018-10-10 18:03:03 -04:00
2021-02-06 04:42:36 +00:00
`euler218()` should return 0.
2018-10-10 18:03:03 -04:00
```js
2020-12-16 00:37:30 -07:00
assert.strictEqual(euler218(), 0);
2018-10-10 18:03:03 -04:00
```
2021-01-13 03:31:00 +01:00
# --seed--
## --seed-contents--
```js
function euler218() {
return true;
}
euler218();
```
2020-12-16 00:37:30 -07:00
# --solutions--
2020-08-13 17:24:35 +02:00
2021-01-13 03:31:00 +01:00
```js
// solution required
```