Files
freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-407-idempotents.chinese.md
Kristofer Koishigawa b3213fc892 fix(i18n): chinese test suite (#38220)
* fix: Chinese test suite

Add localeTiltes, descriptions, and adjust test text and testStrings to get the automated test suite working.

* fix: ran script, updated testStrings and solutions
2020-03-03 18:49:47 +05:30

928 B
Raw Blame History

id, challengeType, title, videoUrl, localeTitle
id challengeType title videoUrl localeTitle
5900f5041000cf542c510016 5 Problem 407: Idempotents 问题407幂等元素

Description

如果我们计算a2 mod 6为0≤a≤5我们得到0,1,4,3,4,1。

a2≡amod 6的最大值为4.让我们将Mn称为a <n的最大值使得a2≡amod n。所以M6= 4。

找ΣMn为1≤n≤107。

Instructions

Tests

tests:
  - text: <code>euler407()</code>应该返回39782849136421。
    testString: assert.strictEqual(euler407(), 39782849136421);

Challenge Seed

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

euler407();

Solution

// solution required