2018-10-08 17:51:51 +00:00
---
2018-10-10 20:20:40 +00:00
id: 5900f4111000cf542c50ff23
2018-10-08 17:51:51 +00:00
challengeType: 5
title: 'Problem 164: Numbers for which no three consecutive digits have a sum greater than a given value'
2018-10-10 20:20:40 +00:00
videoUrl: ''
localeTitle: 'Problema 164: Números para los cuales no hay tres dígitos consecutivos que tengan una suma mayor que un valor dado'
2018-10-08 17:51:51 +00:00
---
## Description
2018-10-10 20:20:40 +00:00
< section id = "description" > ¿Cuántos números de 20 dígitos n (sin ningún cero inicial) existen de tal manera que tres dígitos consecutivos de n no tengan una suma mayor que 9? < / section >
2018-10-08 17:51:51 +00:00
## Instructions
2018-10-10 20:20:40 +00:00
< section id = "instructions" >
2018-10-08 17:51:51 +00:00
< / section >
## Tests
< section id = 'tests' >
```yml
tests:
- text: < code > euler164()</ code > debe devolver 378158756814587.
testString: 'assert.strictEqual(euler164(), 378158756814587, "< code > euler164()< / code > should return 378158756814587.");'
```
< / section >
## Challenge Seed
< section id = 'challengeSeed' >
< div id = 'js-seed' >
```js
function euler164() {
// Good luck!
return true;
}
euler164();
2018-10-10 20:20:40 +00:00
2018-10-08 17:51:51 +00:00
```
< / div >
< / section >
## Solution
< section id = 'solution' >
```js
// solution required
```
< / section >