Files
gikf 7d9496e52c fix(curriculum): clean-up Project Euler 361-380 (#43002)
* fix: clean-up Project Euler 361-380

* fix: improve wording

Co-authored-by: Sem Bauke <46919888+Sembauke@users.noreply.github.com>

* fix: remove unnecessary paragraph

* fix: corrections from review

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>

Co-authored-by: Sem Bauke <46919888+Sembauke@users.noreply.github.com>
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
2021-07-29 12:48:17 -07:00

45 lines
919 B
Markdown

---
id: 5900f4de1000cf542c50fff1
title: 'Problem 370: Geometric triangles'
challengeType: 5
forumTopicId: 302032
dashedName: problem-370-geometric-triangles
---
# --description--
Let us define a geometric triangle as an integer sided triangle with sides $a ≤ b ≤ c$ so that its sides form a geometric progression, i.e. $b^2 = a \times c$.
An example of such a geometric triangle is the triangle with sides $a = 144$, $b = 156$ and $c = 169$.
There are $861\\,805$ geometric triangles with $\text{perimeter} ≤ {10}^6$.
How many geometric triangles exist with $\text{perimeter} ≤ 2.5 \times {10}^{13}$?
# --hints--
`geometricTriangles()` should return `41791929448408`.
```js
assert.strictEqual(geometricTriangles(), 41791929448408);
```
# --seed--
## --seed-contents--
```js
function geometricTriangles() {
return true;
}
geometricTriangles();
```
# --solutions--
```js
// solution required
```