56 lines
828 B
Markdown
56 lines
828 B
Markdown
---
|
|
id: 5900f48f1000cf542c50ffa1
|
|
challengeType: 5
|
|
title: 'Problem 290: Digital Signature'
|
|
---
|
|
|
|
## Description
|
|
<section id='description'>
|
|
How many integers 0 ≤ n < 1018 have the property that the sum of the digits of n equals the sum of digits of 137n?
|
|
</section>
|
|
|
|
## Instructions
|
|
<section id='instructions'>
|
|
|
|
</section>
|
|
|
|
## Tests
|
|
<section id='tests'>
|
|
|
|
```yml
|
|
tests:
|
|
- text: <code>euler290()</code> should return 20444710234716470.
|
|
testString: assert.strictEqual(euler290(), 20444710234716470, '<code>euler290()</code> should return 20444710234716470.');
|
|
|
|
```
|
|
|
|
</section>
|
|
|
|
## Challenge Seed
|
|
<section id='challengeSeed'>
|
|
|
|
<div id='js-seed'>
|
|
|
|
```js
|
|
function euler290() {
|
|
// Good luck!
|
|
return true;
|
|
}
|
|
|
|
euler290();
|
|
```
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</section>
|
|
|
|
## Solution
|
|
<section id='solution'>
|
|
|
|
```js
|
|
// solution required
|
|
```
|
|
</section>
|