freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-443-gcd-sequence.md

56 lines
984 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
id: 5900f5271000cf542c51003a
challengeType: 5
videoUrl: ''
localeTitle: 问题443GCD序列
---
## Description
<section id="description">设gn为如下定义的序列g4= 13gn= gn-1+ gcdngn-1n&gt; 4。 <p>前几个值是: </p><pre> <code>n4567891011121314151617181920... g(n)1314161718272829303132333451545560...</code> </pre><p>给出g1 000= 2524和g1 000 000= 2624152。 </p><p>找到g1015</p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler443()</code>应该返回2744233049300770。
testString: assert.strictEqual(euler443(), 2744233049300770);
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler443() {
// Good luck!
return true;
}
euler443();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
/section>