freeCodeCamp/curriculum/challenges/english/10-coding-interview-prep/project-euler/problem-390-triangles-with-non-rational-sides-and-integral-area.md
Oliver Eyton-Williams ee1e8abd87
feat(curriculum): restore seed + solution to Chinese (#40683)
* feat(tools): add seed/solution restore script

* chore(curriculum): remove empty sections' markers

* chore(curriculum): add seed + solution to Chinese

* chore: remove old formatter

* fix: update getChallenges

parse translated challenges separately, without reference to the source

* chore(curriculum): add dashedName to English

* chore(curriculum): add dashedName to Chinese

* refactor: remove unused challenge property 'name'

* fix: relax dashedName requirement

* fix: stray tag

Remove stray `pre` tag from challenge file.

Signed-off-by: nhcarrigan <nhcarrigan@gmail.com>

Co-authored-by: nhcarrigan <nhcarrigan@gmail.com>
2021-01-12 19:31:00 -07:00

853 B

id, title, challengeType, forumTopicId, dashedName
id title challengeType forumTopicId dashedName
5900f4f21000cf542c510005 Problem 390: Triangles with non rational sides and integral area 5 302055 problem-390-triangles-with-non-rational-sides-and-integral-area

--description--

Consider the triangle with sides √5, √65 and √68.

It can be shown that this triangle has area 9.

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.

The example triangle has b=2 and c=8.

S(106)=18018206.

Find S(1010).

--hints--

euler390() should return 2919133642971.

assert.strictEqual(euler390(), 2919133642971);

--seed--

--seed-contents--

function euler390() {

  return true;
}

euler390();

--solutions--

// solution required