43 lines
772 B
Markdown
43 lines
772 B
Markdown
![]() |
---
|
|||
|
id: 5900f43f1000cf542c50ff52
|
|||
|
title: '問題 211: 約数の平方和'
|
|||
|
challengeType: 5
|
|||
|
forumTopicId: 301853
|
|||
|
dashedName: problem-211-divisor-square-sum
|
|||
|
---
|
|||
|
|
|||
|
# --description--
|
|||
|
|
|||
|
正の整数 $n$ について、その約数の平方和を $σ_2(n)$ とします。 例えば次のようになります。
|
|||
|
|
|||
|
$$σ_2(10) = 1 + 4 + 25 + 100 = 130$$
|
|||
|
|
|||
|
$0 < n < 64\\,000\\,000$ のとき、$σ_2(n)$ が完全平方数である $n$ の総和を求めなさい。
|
|||
|
|
|||
|
# --hints--
|
|||
|
|
|||
|
`divisorSquareSum()` は `1922364685` を返す必要があります。
|
|||
|
|
|||
|
```js
|
|||
|
assert.strictEqual(divisorSquareSum(), 1922364685);
|
|||
|
```
|
|||
|
|
|||
|
# --seed--
|
|||
|
|
|||
|
## --seed-contents--
|
|||
|
|
|||
|
```js
|
|||
|
function divisorSquareSum() {
|
|||
|
|
|||
|
return true;
|
|||
|
}
|
|||
|
|
|||
|
divisorSquareSum();
|
|||
|
```
|
|||
|
|
|||
|
# --solutions--
|
|||
|
|
|||
|
```js
|
|||
|
// solution required
|
|||
|
```
|