freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-167-investigating-ulam-sequences.md
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

957 B
Raw Blame History

id, title, challengeType, videoUrl, dashedName
id title challengeType videoUrl dashedName
5900f4141000cf542c50ff26 问题167研究Ulam序列 5 problem-167-investigating-ulam-sequences

--description--

对于两个正整数a和bUlam序列Uab由Uab1 = aUab2 = b定义对于k> 2Uab k是大于Uabk-1的最小整数它可以用一种方式写成Uab的两个不同的先前成员的总和。例如序列U1,2以1,2,3 = 1 + 2,4 = 1 + 3,6 = 2 + 4,8 = 2 + 6,11 = 3 + 8开始; 5不属于它因为5 = 1 + 4 = 2 + 3有两个表示作为前两个成员的总和同样7 = 1 + 6 = 3 + 4.找到ΣU2,2n + 1k为2≤n≤10其中k = 1011。

--hints--

euler167()应该返回3916160068885。

assert.strictEqual(euler167(), 3916160068885);

--seed--

--seed-contents--

function euler167() {

  return true;
}

euler167();

--solutions--

// solution required