freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-454-diophantine-rec...

1000 B
Raw Blame History

id challengeType title videoUrl localeTitle
5900f5331000cf542c510045 5 Problem 454: Diophantine reciprocals III 问题454丢番图倒数III

Description

在下面的等式中xy和n是正整数。

1x + 1y = 1n

对于极限L我们将FL定义为满足x <y≤L的解的数量。

我们可以验证F15= 4和F1000= 1069.找到F1012

Instructions

Tests

tests:
  - text: <code>euler454()</code>应该返回5435004633092。
    testString: 'assert.strictEqual(euler454(), 5435004633092, "<code>euler454()</code> should return 5435004633092.");'

Challenge Seed

function euler454() {
  // Good luck!
  return true;
}

euler454();

Solution

// solution required