--- id: 5900f4be1000cf542c50ffd0 challengeType: 5 title: 'Problem 337: Totient Stairstep Sequences' videoUrl: '' localeTitle: Problema 337 totiente sequências Stairstep --- ## Description
Seja {a1, a2, ..., an} uma sequência inteira de tamanho n tal que: a1 = 6 para todo 1 ≤ i <n: φ (ai) <φ (ai + 1) <ai <ai + 11 Seja S (N) o número de tais sequências com um ≤ N. Por exemplo, S (10) = 4: {6}, {6, 8}, {6, 8, 9} e {6, 10}. Podemos verificar que S (100) = 482073668 e S (10 000) mod 108 = 73808307.

Encontre S (20 000 000) mod 108.

1 φ denota a função totiente de Euler.

## Instructions
## Tests
```yml tests: - text: euler337() deve retornar 85068035. testString: 'assert.strictEqual(euler337(), 85068035, "euler337() should return 85068035.");' ```
## Challenge Seed
```js function euler337() { // Good luck! return true; } euler337(); ```
## Solution
```js // solution required ```