freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-356-largest-roots-o...

1.1 KiB

id challengeType title forumTopicId localeTitle
5900f4d01000cf542c50ffe3 5 Problem 356: Largest roots of cubic polynomials 302016 Задача 356: Крупнейшие корни кубических многочленов

Description

Пусть an - наибольший вещественный корень многочлена g (x) = x3 - 2n · x2 + n. Например, a2 = 3.86619826 ...

Найдите последние восемь цифр.

Примечание: представляет функцию пола.

Instructions

Tests

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

Challenge Seed

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

euler356();

Solution

// solution required