Oliver Eyton-Williams ee1e8abd87
feat(curriculum): restore seed + solution to Chinese (#40683)
* feat(tools): add seed/solution restore script

* chore(curriculum): remove empty sections' markers

* chore(curriculum): add seed + solution to Chinese

* chore: remove old formatter

* fix: update getChallenges

parse translated challenges separately, without reference to the source

* chore(curriculum): add dashedName to English

* chore(curriculum): add dashedName to Chinese

* refactor: remove unused challenge property 'name'

* fix: relax dashedName requirement

* fix: stray tag

Remove stray `pre` tag from challenge file.

Signed-off-by: nhcarrigan <nhcarrigan@gmail.com>

Co-authored-by: nhcarrigan <nhcarrigan@gmail.com>
2021-01-12 19:31:00 -07:00

1018 B
Raw Blame History

id, title, challengeType, videoUrl, dashedName
id title challengeType videoUrl dashedName
5900f4951000cf542c50ffa8 问题297Zeckendorf表示 5 problem-297-zeckendorf-representation

--description--

斐波那契数列中的每个新项都是通过将前两个项相加而生成的。

从1和2开始前10个术语将是1、2、3、5、8、13、21、34、55、89。

每个正整数都可以唯一地写为斐波纳契数列的非连续项之和。 例如100 = 3 + 8 + 89。 这样的总和称为数字的Zeckendorf表示。

对于任何n> 0的整数令zn为n的Zeckendorf表示中的项数。 因此z5= 1z14= 2z100= 3等。 另外对于0 n 106∑ zn 7894453。

求出∑ zn为0 < n < 1017。

--hints--

euler297()应该返回2252639041804718000。

assert.strictEqual(euler297(), 2252639041804718000);

--seed--

--seed-contents--

function euler297() {

  return true;
}

euler297();

--solutions--

// solution required