freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-379-least-common-mu...

495 B
Raw Blame History

id title challengeType videoUrl
5900f4e81000cf542c50fffa 问题379最少共同的多重计数 5

--description--

设fn为具有x和y正整数的耦合数xyx≤yx和y的最小公倍数等于n。

令g为f的求和函数gn=Σfi1≤i≤n。

你得到g106= 37429395。

找到g1012

--hints--

euler379()应该返回132314136838185。

assert.strictEqual(euler379(), 132314136838185);

--solutions--