freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-401-sum-of-squares-...

45 lines
748 B
Markdown
Raw Normal View History

---
id: 5900f4fd1000cf542c51000f
title: 问题401除数的平方和
challengeType: 5
videoUrl: ''
dashedName: problem-401-sum-of-squares-of-divisors
---
# --description--
6的除数是1,2,3和6.这些数的平方和是1 + 4 + 9 + 36 = 50。
设sigma2n代表n的除数的平方和。因此sigma26= 50。
设SIGMA2表示sigma2的和函数即对于i = 1到nSIGMA2n=Σsigma2i。 SIGMA2的前6个值是1,6,16,37,63和113。
找到SIGMA21015modulo 109。
# --hints--
`euler401()`应该返回281632621。
```js
assert.strictEqual(euler401(), 281632621);
```
# --seed--
## --seed-contents--
```js
function euler401() {
return true;
}
euler401();
```
# --solutions--
```js
// solution required
```