Files
freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-319-bounded-sequences.md
Oliver Eyton-Williams dec409a4bd fix: s/localeTitle/title/g
2020-10-06 23:10:08 +05:30

73 lines
1.1 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
videoUrl: ''
title: 问题319有界序列
---
## Description
<section id="description">
令x1x2...xn为长度为n的序列使得
x1 = 2
对于所有1 <inxi-1 <xi
对于所有1ijn的i和jxij <xj + 1i
这样的长度为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}。
令tn表示长度为n的此类序列的数量
给出t10= 86195和t20= 5227991891
找出t1010并给出答案模块109
</section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler319()</code>应该返回268457129。
testString: assert.strictEqual(euler319(), 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>