freeCodeCamp/curriculum/challenges/italian/10-coding-interview-prep/project-euler/problem-370-geometric-trian...

45 lines
828 B
Markdown
Raw Normal View History

---
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. b2 = a · c .
An example of such a geometric triangle is the triangle with sides a = 144, b = 156 and c = 169.
There are 861805 geometric triangles with perimeter ≤ 106 .
How many geometric triangles exist with perimeter ≤ 2.5·1013 ?
# --hints--
`euler370()` should return 41791929448408.
```js
assert.strictEqual(euler370(), 41791929448408);
```
# --seed--
## --seed-contents--
```js
function euler370() {
return true;
}
euler370();
```
# --solutions--
```js
// solution required
```