2021-06-15 00:49:18 -07:00
---
id: 5900f4ab1000cf542c50ffbe
2022-03-01 21:39:26 +05:30
title: 'Problema 319: Sequenze limitate'
2021-06-15 00:49:18 -07:00
challengeType: 5
forumTopicId: 301975
dashedName: problem-319-bounded-sequences
---
# --description--
2022-03-01 21:39:26 +05:30
Sia $x_1, x_2, \ldots, x_n$ una sequenza di lunghezza $n$ tale che:
2021-06-15 00:49:18 -07:00
2022-03-01 21:39:26 +05:30
- $x_1 = 2$
- per ogni $1 < i ≤ n : x_{i - 1} < x_i$
- per ogni $i$ e $j$ con $1 ≤ i, j ≤ n : {(x_i)}^j < {(x_j + 1)}^i$
2021-06-15 00:49:18 -07:00
2022-03-01 21:39:26 +05:30
Ci sono solo cinque di tali sequenze di lunghezza 2: {2,4}, {2,5}, {2,6}, {2,7} e {2,8}. Ci sono 293 sequenze di questo tipo di lunghezza 5; tre esempi sono: {2,5,11,25,55}, {2,6,14,36,88}, {2,8,22,64,181}.
2021-06-15 00:49:18 -07:00
2022-03-01 21:39:26 +05:30
Sia $t(n)$ il numero di tali sequenze di lunghezza $n$. Ti viene dato $t(10) = 86195$ e $t(20) = 5227991891$.
2021-06-15 00:49:18 -07:00
2022-03-01 21:39:26 +05:30
Trova $t({10}^{10})$ e dai la tua risposta modulo $10^9$.
2021-06-15 00:49:18 -07:00
# --hints--
2022-03-01 21:39:26 +05:30
`boundedSequences()` dovrebbe restituire `268457129` .
2021-06-15 00:49:18 -07:00
```js
2022-03-01 21:39:26 +05:30
assert.strictEqual(boundedSequences(), 268457129);
2021-06-15 00:49:18 -07:00
```
# --seed--
## --seed-contents--
```js
2022-03-01 21:39:26 +05:30
function boundedSequences() {
2021-06-15 00:49:18 -07:00
return true;
}
2022-03-01 21:39:26 +05:30
boundedSequences();
2021-06-15 00:49:18 -07:00
```
# --solutions--
```js
// solution required
```