freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-235-an-arithmetic-g...

1.2 KiB

id challengeType title videoUrl localeTitle
5900f4571000cf542c50ff6a 5 Problem 235: An Arithmetic Geometric sequence Задача 235: Арифметическая геометрическая последовательность

Description

Дана арифметико-геометрическая последовательность u (k) = (900-3k) rk-1. Пусть s (n) = Σk = 1 ... nu (k).

Найдите значение r, для которого s (5000) = -600 000 000 000.

Дайте ваш ответ округленным до 12 мест за десятичной точкой.

Instructions

Tests

tests:
  - text: <code>euler235()</code> должен вернуть 1.002322108633.
    testString: 'assert.strictEqual(euler235(), 1.002322108633, "<code>euler235()</code> should return 1.002322108633.");'

Challenge Seed

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

euler235();

Solution

// solution required