---
id: 5900f4111000cf542c50ff23
challengeType: 5
title: 'Problem 164: Numbers for which no three consecutive digits have a sum greater than a given value'
---
## Description
How many 20 digit numbers n (without any leading zero) exist such that no three consecutive digits of n have a sum greater than 9?
## Instructions
## Tests
```yml
tests:
- text: euler164() should return 378158756814587.
testString: 'assert.strictEqual(euler164(), 378158756814587, "euler164() should return 378158756814587.");'
```
## Challenge Seed
```js
function euler164() {
// Good luck!
return true;
}
euler164();
```