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

45 lines
945 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: 5900f45d1000cf542c50ff70
title: '問題 241: 完全商'
challengeType: 5
forumTopicId: 301888
dashedName: 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` を返す必要があります。
```js
assert.strictEqual(perfectionQuotients(), 482316491800641150);
```
# --seed--
## --seed-contents--
```js
function perfectionQuotients() {
return true;
}
perfectionQuotients();
```
# --solutions--
```js
// solution required
```