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

1.2 KiB
Raw Blame History

id challengeType title videoUrl localeTitle
5900f5411000cf542c510054 5 Problem 468: Smooth divisors of binomial coefficients 问题468二项式系数的平滑除数

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。

Instructions

Tests

tests:
  - text: <code>euler468()</code>应该返回852950321。
    testString: 'assert.strictEqual(euler468(), 852950321, "<code>euler468()</code> should return 852950321.");'

Challenge Seed

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

euler468();

Solution

// solution required