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

624 B
Raw Blame History

id, title, challengeType, videoUrl
id title challengeType videoUrl
5900f53c1000cf542c51004e 问题463一种奇怪的复发关系 5

--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。

assert.strictEqual(euler463(), 808981553);

--solutions--