* fix: clean-up Project Euler 281-300 * fix: missing image extension * fix: missing power Co-authored-by: Tom <20648924+moT01@users.noreply.github.com> * fix: missing subscript Co-authored-by: Tom <20648924+moT01@users.noreply.github.com> Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
1023 B
1023 B
id, title, challengeType, forumTopicId, dashedName
| id | title | challengeType | forumTopicId | dashedName |
|---|---|---|---|---|
| 5900f4911000cf542c50ffa3 | Problem 292: Pythagorean Polygons | 5 | 301944 | problem-292-pythagorean-polygons |
--description--
We shall define a pythagorean polygon to be a convex polygon with the following properties:
- there are at least three vertices,
- no three vertices are aligned,
- each vertex has integer coordinates,
- each edge has integer length.
For a given integer n, define P(n) as the number of distinct pythagorean polygons for which the perimeter is ≤ n.
Pythagorean polygons should be considered distinct as long as none is a translation of another.
You are given that P(4) = 1, P(30) = 3655 and P(60) = 891045.
Find P(120).
--hints--
pythagoreanPolygons() should return 3600060866.
assert.strictEqual(pythagoreanPolygons(), 3600060866);
--seed--
--seed-contents--
function pythagoreanPolygons() {
return true;
}
pythagoreanPolygons();
--solutions--
// solution required