2018-09-30 23:01:58 +01:00
---
id: 5900f4ab1000cf542c50ffbe
title: 'Problem 319: Bounded Sequences'
2020-11-27 19:02:05 +01:00
challengeType: 5
2019-08-05 09:17:33 -07:00
forumTopicId: 301975
2021-01-13 03:31:00 +01:00
dashedName: problem-319-bounded-sequences
2018-09-30 23:01:58 +01:00
---
2020-11-27 19:02:05 +01:00
# --description--
2021-07-21 17:59:56 +02:00
Let $x_1, x_2, \ldots, x_n$ be a sequence of length $n$ such that:
2020-11-27 19:02:05 +01:00
2021-07-21 17:59:56 +02:00
- $x_1 = 2$
- for all $1 < i ≤ n : x_{i - 1} < x_i$
- for all $i$ and $j$ with $1 ≤ i, j ≤ n : {(x_i)}^j < {(x_j + 1)}^i$
2018-09-30 23:01:58 +01:00
2020-11-27 19:02:05 +01:00
There are only five such sequences of length 2, namely: {2,4}, {2,5}, {2,6}, {2,7} and {2,8}. There are 293 such sequences of length 5; three examples are given below: {2,5,11,25,55}, {2,6,14,36,88}, {2,8,22,64,181}.
2018-09-30 23:01:58 +01:00
2021-07-21 17:59:56 +02:00
Let $t(n)$ denote the number of such sequences of length $n$. You are given that $t(10) = 86195$ and $t(20) = 5227991891$.
2018-09-30 23:01:58 +01:00
2021-07-21 17:59:56 +02:00
Find $t({10}^{10})$ and give your answer modulo $10^9$.
2018-09-30 23:01:58 +01:00
2020-11-27 19:02:05 +01:00
# --hints--
2018-09-30 23:01:58 +01:00
2021-07-21 17:59:56 +02:00
`boundedSequences()` should return `268457129` .
2018-09-30 23:01:58 +01:00
2020-11-27 19:02:05 +01:00
```js
2021-07-21 17:59:56 +02:00
assert.strictEqual(boundedSequences(), 268457129);
2018-09-30 23:01:58 +01:00
```
2020-11-27 19:02:05 +01:00
# --seed--
2018-09-30 23:01:58 +01:00
2020-11-27 19:02:05 +01:00
## --seed-contents--
2018-09-30 23:01:58 +01:00
```js
2021-07-21 17:59:56 +02:00
function boundedSequences() {
2020-09-15 09:57:40 -07:00
2018-09-30 23:01:58 +01:00
return true;
}
2021-07-21 17:59:56 +02:00
boundedSequences();
2018-09-30 23:01:58 +01:00
```
2020-11-27 19:02:05 +01:00
# --solutions--
2018-09-30 23:01:58 +01:00
```js
// solution required
```