Files
freeCodeCamp/curriculum/challenges/japanese/10-coding-interview-prep/project-euler/problem-241-perfection-quotients.md
2022-01-20 20:30:18 +01:00

945 B
Raw Permalink Blame History

id, title, challengeType, forumTopicId, dashedName
id title challengeType forumTopicId dashedName
5900f45d1000cf542c50ff70 問題 241: 完全商 5 301888 problem-241-perfection-quotients

--description--

正の整数 n について、n の約数の総和を σ(n) とします。例えば、σ(6) = 1 + 2 + 3 + 6 = 12 です。

周知のとおり、完全数とは σ(n) = 2n が成り立つ数です。

正の整数の完全商 (perfect quotient) を p(n) = \frac{s(n)}{n} と定義します。

p(n)k + \frac{1}{2} (ここで k は整数) となる正の整数 n ≤ {10}^{18} の総和を求めなさい。

--hints--

perfectionQuotients()482316491800641150 を返す必要があります。

assert.strictEqual(perfectionQuotients(), 482316491800641150);

--seed--

--seed-contents--

function perfectionQuotients() {

  return true;
}

perfectionQuotients();

--solutions--

// solution required