Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com> Co-authored-by: Kristofer Koishigawa <scissorsneedfoodtoo@gmail.com> Co-authored-by: Beau Carnes <beaucarnes@gmail.com>
1.0 KiB
1.0 KiB
id, challengeType, isHidden, title, forumTopicId
id | challengeType | isHidden | title | forumTopicId |
---|---|---|---|---|
5900f4fd1000cf542c51000f | 5 | false | Problem 401: Sum of squares of divisors | 302069 |
Description
Let sigma2(n) represent the sum of the squares of the divisors of n. Thus sigma2(6)=50.
Let SIGMA2 represent the summatory function of sigma2, that is SIGMA2(n)=∑sigma2(i) for i=1 to n. The first 6 values of SIGMA2 are: 1,6,16,37,63 and 113.
Find SIGMA2(1015) modulo 109.
Instructions
Tests
tests:
- text: <code>euler401()</code> should return 281632621.
testString: assert.strictEqual(euler401(), 281632621);
Challenge Seed
function euler401() {
// Good luck!
return true;
}
euler401();
Solution
// solution required