freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-468-smooth-divisors...

885 B
Raw Blame History

id title challengeType videoUrl dashedName
5900f5411000cf542c510054 问题468二项式系数的平滑除数 5 problem-468-smooth-divisors-of-binomial-coefficients

--description--

如果没有一个整数因子大于B则整数称为B-smooth。

设SBn是n的最大B-平滑除数。示例S110= 1 S42100= 12 S172496144= 5712

定义Fn=Σ1≤B≤nΣ0≤r≤nSBCnr。这里Cnr表示二项式系数。示例F11= 3132 F1 111mod 1 000 000 993 = 706036312 F111 111mod 1 000 000 993 = 22156169

求F11 111 111mod 1 000 000 993。

--hints--

euler468()应该返回852950321。

assert.strictEqual(euler468(), 852950321);

--seed--

--seed-contents--

function euler468() {

  return true;
}

euler468();

--solutions--

// solution required