1.1 KiB
1.1 KiB
id, challengeType, videoUrl, title
id | challengeType | videoUrl | title |
---|---|---|---|
5900f5311000cf542c510042 | 5 | 问题451:模逆 |
Description
设I(n)是小于n-1的最大正数m,使得m modulo n的模逆与m本身相等。所以我(15)= 11。我(100)= 51和I(7)= 1。
求3Σn≤2·107的ΣI(n)
Instructions
Tests
tests:
- text: <code>euler451()</code>应该返回153651073760956。
testString: assert.strictEqual(euler451(), 153651073760956);
Challenge Seed
function euler451() {
// Good luck!
return true;
}
euler451();
Solution
// solution required
/section>