Files
freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-319-bounded-sequences.russian.md

56 lines
1.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: 5900f4ab1000cf542c50ffbe
challengeType: 5
title: 'Problem 319: Bounded Sequences'
videoUrl: ''
localeTitle: 'Задача 319: Ограниченные последовательности'
---
## Description
<section id="description"> Пусть x1, x2, ..., xn - последовательность длины n такая, что: x1 = 2 для всех 1 &lt;i ≤ n: xi-1 &lt;xi для всех i и j с 1 ≤ i, j ≤ n: ( xi) j &lt;(xj + 1) i <p> Существует только пять таких последовательностей длины 2, а именно: {2,4}, {2,5}, {2,6}, {2,7} и {2,8}. Существует 293 таких последовательностей длины 5; три примера приведены ниже: {2,5,11,25,55}, {2,6,14,36,88}, {2,8,22,64,181}. </p><p> Обозначим через t (n) число таких последовательностей длины n. Вам дается, что t (10) = 86195 и t (20) = 5227991891. </p><p> Найдите t (1010) и дайте свой ответ по модулю 109. </p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler319()</code> должен возвращать 268457129.
testString: 'assert.strictEqual(euler319(), 268457129, "<code>euler319()</code> should return 268457129.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler319() {
// Good luck!
return true;
}
euler319();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>