freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-235-an-arithmetic-geometric-sequence.md
2020-09-29 22:09:05 +02:00

935 B
Raw Blame History

id, challengeType, title, videoUrl, localeTitle
id challengeType title videoUrl localeTitle
5900f4571000cf542c50ff6a 5 Problem 235: An Arithmetic Geometric sequence 问题235算术几何序列

Description

给定是算术几何序列uk=900-3krk-1。设sn=Σk= 1 ... nuk

找到r的值其中s5000= - 600,000,000,000。

将您的答案四舍五入到小数点后面的12位。

Instructions

Tests

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

Challenge Seed

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

euler235();

Solution

// solution required

/section>