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

1.1 KiB
Raw Blame History

id challengeType title videoUrl localeTitle
5900f3db1000cf542c50feed 5 Problem 110: Diophantine Reciprocals II 问题110丢番图互惠II

Description

在下面的等式中xy和n是正整数。 1 / x + 1 / y = 1 / n可以证实,当n = 1260时存在113个不同的解并且这是n的最小值其中不同解的总数超过100。 n的最小值是多少,不同解决方案的数量超过四百万?

Instructions

Tests

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

Challenge Seed

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

diophantineTwo();

Solution

// solution required