56 lines
1.1 KiB
Markdown
56 lines
1.1 KiB
Markdown
---
|
||
id: 5900f4e51000cf542c50fff8
|
||
challengeType: 5
|
||
title: 'Problem 377: Sum of digits, experience 13'
|
||
videoUrl: ''
|
||
localeTitle: 问题377:数字之和,经验13
|
||
---
|
||
|
||
## Description
|
||
<section id="description">有16个正整数,它们的数字没有零,并且数字和等于5,即:5,14,23,32,41,113,122,131,212,221,311,1112, 1121年,1211年,2111年和1111年。他们的总和是17891。 <p>设f(n)为所有正整数的和,它们的数字不为零,数字和等于n。 </p><p>找到$ \ displaystyle \ sum_ {i = 1} ^ {17} f(13 ^ i)$。将最后9位数字作为答案。 </p></section>
|
||
|
||
## Instructions
|
||
<section id="instructions">
|
||
</section>
|
||
|
||
## Tests
|
||
<section id='tests'>
|
||
|
||
```yml
|
||
tests:
|
||
- text: <code>euler377()</code>应该返回732385277。
|
||
testString: 'assert.strictEqual(euler377(), 732385277, "<code>euler377()</code> should return 732385277.");'
|
||
|
||
```
|
||
|
||
</section>
|
||
|
||
## Challenge Seed
|
||
<section id='challengeSeed'>
|
||
|
||
<div id='js-seed'>
|
||
|
||
```js
|
||
function euler377() {
|
||
// Good luck!
|
||
return true;
|
||
}
|
||
|
||
euler377();
|
||
|
||
```
|
||
|
||
</div>
|
||
|
||
|
||
|
||
</section>
|
||
|
||
## Solution
|
||
<section id='solution'>
|
||
|
||
```js
|
||
// solution required
|
||
```
|
||
</section>
|