Files
freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-463-a-weird-recurrence-relation.chinese.md
Kristofer Koishigawa b3213fc892 fix(i18n): chinese test suite (#38220)
* fix: Chinese test suite

Add localeTiltes, descriptions, and adjust test text and testStrings to get the automated test suite working.

* fix: ran script, updated testStrings and solutions
2020-03-03 18:49:47 +05:30

1.1 KiB
Raw Blame History

id, challengeType, title, videoUrl, localeTitle
id challengeType title videoUrl localeTitle
5900f53c1000cf542c51004e 5 Problem 463: A weird recurrence relation 问题463一种奇怪的复发关系

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位数字。

Instructions

Tests

tests:
  - text: <code>euler463()</code>应该返回808981553。
    testString: assert.strictEqual(euler463(), 808981553);

Challenge Seed

function euler463() {
  // Good luck!
  return true;
}

euler463();

Solution

// solution required