freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-420-2x2-positive-in...

816 B
Raw Blame History

id title challengeType videoUrl dashedName
5900f5111000cf542c510023 问题4202x2正整数矩阵 5 problem-420-2x2-positive-integer-matrix

--description--

正整数矩阵是其元素均为正整数的矩阵。

一些正整数矩阵可以两种不同方式表示为正整数矩阵的平方。 这是一个例子:

我们将FN定义为迹线小于N的2x2正整数矩阵的数目并且可以用两种不同的方式将其表示为正整数矩阵的平方。 我们可以验证F50= 7和F1000= 1019。

找出F107

--hints--

euler420()应该返回145159332。

assert.strictEqual(euler420(), 145159332);

--seed--

--seed-contents--

function euler420() {

  return true;
}

euler420();

--solutions--

// solution required