Files
freeCodeCamp/curriculum/challenges/japanese/10-coding-interview-prep/project-euler/problem-432-totient-sum.md
2022-01-23 00:08:20 +09:00

782 B
Raw Permalink Blame History

id, title, challengeType, forumTopicId, dashedName
id title challengeType forumTopicId dashedName
5900f51e1000cf542c510030 問題 432: トーティエント和 5 302103 problem-432-totient-sum

--description--

1 ≤ i ≤ m のとき、S(n, m) = \sum φ(n × i) とします。 (φ はオイラーのトーティエント関数を表します。)

S(510\\,510, {10}^6) = 45\\,480\\,596\\,821\\,125\\,120 が与えられます。

S(510\\,510, {10}^{11}) を求めなさい。 回答は、下位 9 桁とすること。

--hints--

totientSum()754862080 を返す必要があります。

assert.strictEqual(totientSum(), 754862080);

--seed--

--seed-contents--

function totientSum() {

  return true;
}

totientSum();

--solutions--

// solution required