Files
freeCodeCamp/curriculum/challenges/english/08-coding-interview-prep/project-euler/problem-235-an-arithmetic-geometric-sequence.english.md
Oliver Eyton-Williams f1c9b08cf3 fix(curriculum): add isHidden: false to challenges
This includes certificates (where it does nothing), but does not
include any translations.
2020-05-25 16:25:19 +05:30

914 B

id, challengeType, isHidden, title, forumTopicId
id challengeType isHidden title forumTopicId
5900f4571000cf542c50ff6a 5 false Problem 235: An Arithmetic Geometric sequence 301879

Description

Given is the arithmetic-geometric sequence u(k) = (900-3k)rk-1. Let s(n) = Σk=1...nu(k).

Find the value of r for which s(5000) = -600,000,000,000.

Give your answer rounded to 12 places behind the decimal point.

Instructions

Tests

tests:
  - text: <code>euler235()</code> should return 1.002322108633.
    testString: assert.strictEqual(euler235(), 1.002322108633);

Challenge Seed

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

euler235();

Solution

// solution required