1.1 KiB
1.1 KiB
id | challengeType | title | videoUrl | localeTitle |
---|---|---|---|---|
5900f5311000cf542c510042 | 5 | Problem 451: Modular inverses |
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: ''
testString: 'assert.strictEqual(euler451(), 153651073760956, "<code>euler451()</code> should return 153651073760956.");'
Challenge Seed
function euler451() {
// Good luck!
return true;
}
euler451();
Solution
// solution required