47 lines
928 B
Markdown
47 lines
928 B
Markdown
---
|
|
id: 5900f4e51000cf542c50fff8
|
|
title: '問題 377: 各位の和 - 13 に注目'
|
|
challengeType: 5
|
|
forumTopicId: 302039
|
|
dashedName: problem-377-sum-of-digits-experience-13
|
|
---
|
|
|
|
# --description--
|
|
|
|
いずれの桁も 0 ではなく各位の和が 5 に等しい正の整数は、次の 16 個です。
|
|
|
|
5, 14, 23, 32, 41, 113, 122, 131, 212, 221, 311, 1112, 1121, 1211, 2111, 11111
|
|
|
|
これらの和は 17891 になります。
|
|
|
|
いずれの桁も 0 ではなく各位の和が $n$ に等しい正の整数の和を、$f(n)$ とします。
|
|
|
|
$\displaystyle\sum_{i=1}^{17} f(13^i)$ を求めなさい。 下位 9 桁を答えること。
|
|
|
|
# --hints--
|
|
|
|
`experience13()` は `732385277` を返す必要があります。
|
|
|
|
```js
|
|
assert.strictEqual(experience13(), 732385277);
|
|
```
|
|
|
|
# --seed--
|
|
|
|
## --seed-contents--
|
|
|
|
```js
|
|
function experience13() {
|
|
|
|
return true;
|
|
}
|
|
|
|
experience13();
|
|
```
|
|
|
|
# --solutions--
|
|
|
|
```js
|
|
// solution required
|
|
```
|