Files
freeCodeCamp/curriculum/challenges/japanese/10-coding-interview-prep/project-euler/problem-356-largest-roots-of-cubic-polynomials.md
2022-01-23 00:08:20 +09:00

824 B

id, title, challengeType, forumTopicId, dashedName
id title challengeType forumTopicId dashedName
5900f4d01000cf542c50ffe3 問題 356: 三次多項式の最大根 5 302016 problem-356-largest-roots-of-cubic-polynomials

--description--

a_n を、多項式 g(x) = x^3 - 2^n \times x^2 + n の最大の実根とします。

例: a_2 = 3.86619826\ldots

\displaystyle\sum_{i = 1}^{30} \lfloor {a_i}^{987654321}\rfloor の下位 8 桁を求めなさい。

注: \lfloor a\rfloor は床関数を表します。

--hints--

rootsOfCubicPolynomials()28010159 を返す必要があります。

assert.strictEqual(rootsOfCubicPolynomials(), 28010159);

--seed--

--seed-contents--

function rootsOfCubicPolynomials() {

  return true;
}

rootsOfCubicPolynomials();

--solutions--

// solution required