freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-435-polynomials-of-...

594 B
Raw Blame History

id title challengeType videoUrl
5900f5201000cf542c510032 问题435斐波那契数的多项式 5

--description--

斐波纳契数{fnn≥0}被递归定义为fn = fn-1 + fn-2基本情况为f0 = 0和f1 = 1。

对于0≤i≤n将多项式{Fnn≥0}定义为Fnx= ∑fixi。

例如F7x= x + x2 + 2x3 + 3x4 + 5x5 + 8x6 + 13x7而F711= 268357683。

令n =1015。求和[∑0≤x≤100 Fnx] mod 1307674368000= 15

--hints--

euler435()252541322550。

assert.strictEqual(euler435(), 252541322550);

--solutions--