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

568 B
Raw Blame History

id, title, challengeType, videoUrl
id title challengeType videoUrl
5900f4fd1000cf542c51000f 问题401除数的平方和 5

--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。

assert.strictEqual(euler401(), 281632621);

--solutions--