2018-09-30 22:01:58 +00:00
|
|
|
---
|
|
|
|
id: 5900f5191000cf542c51002c
|
|
|
|
title: 'Problem 429: Sum of squares of unitary divisors'
|
2020-11-27 18:02:05 +00:00
|
|
|
challengeType: 5
|
2019-08-05 16:17:33 +00:00
|
|
|
forumTopicId: 302099
|
2021-01-13 02:31:00 +00:00
|
|
|
dashedName: problem-429-sum-of-squares-of-unitary-divisors
|
2018-09-30 22:01:58 +00:00
|
|
|
---
|
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
# --description--
|
|
|
|
|
2018-09-30 22:01:58 +00:00
|
|
|
A unitary divisor d of a number n is a divisor of n that has the property gcd(d, n/d) = 1.
|
2020-11-27 18:02:05 +00:00
|
|
|
|
2018-09-30 22:01:58 +00:00
|
|
|
The unitary divisors of 4! = 24 are 1, 3, 8 and 24.
|
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
The sum of their squares is 12 + 32 + 82 + 242 = 650.
|
2018-09-30 22:01:58 +00:00
|
|
|
|
|
|
|
Let S(n) represent the sum of the squares of the unitary divisors of n. Thus S(4!)=650.
|
|
|
|
|
|
|
|
Find S(100 000 000!) modulo 1 000 000 009.
|
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
# --hints--
|
2018-09-30 22:01:58 +00:00
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
`euler429()` should return 98792821.
|
2018-09-30 22:01:58 +00:00
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
```js
|
|
|
|
assert.strictEqual(euler429(), 98792821);
|
2018-09-30 22:01:58 +00:00
|
|
|
```
|
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
# --seed--
|
2018-09-30 22:01:58 +00:00
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
## --seed-contents--
|
2018-09-30 22:01:58 +00:00
|
|
|
|
|
|
|
```js
|
|
|
|
function euler429() {
|
2020-09-15 16:57:40 +00:00
|
|
|
|
2018-09-30 22:01:58 +00:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
euler429();
|
|
|
|
```
|
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
# --solutions--
|
2018-09-30 22:01:58 +00:00
|
|
|
|
|
|
|
```js
|
|
|
|
// solution required
|
|
|
|
```
|