Files
freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-463-a-weird-recurrence-relation.md

24 lines
624 B
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: 5900f53c1000cf542c51004e
title: 问题463一种奇怪的复发关系
challengeType: 5
videoUrl: ''
---
# --description--
函数$ f $定义为所有正整数,如下所示:$ f1= 1 $ $ f3= 3 $ $ f2n= fn$ $ f4n + 1= 2f 2n + 1 - fn$ $ f4n + 3= 3f2n + 1 - 2fn$
函数$ Sn$定义为$ \\ sum\_ {i = 1} ^ {n} fi$。 $ S8= 22 $和$ S100= 3604 $。找到$ S3 ^ {37}$。给出答案的最后9位数字。
# --hints--
`euler463()`应该返回808981553。
```js
assert.strictEqual(euler463(), 808981553);
```
# --solutions--