1.3 KiB
1.3 KiB
id, challengeType, videoUrl, title
id | challengeType | videoUrl | title |
---|---|---|---|
5900f53d1000cf542c51004f | 5 | 问题464:莫比乌斯函数和区间 |
Description
令P(a,b)为区间[a,b]中的整数n,使得μ(n)= 1.设N(a,b)为区间[a,b]中的整数n这样μ(n)= -1。例如,P(2,10)= 2且N(2,10)= 4。
令C(n)为整数对(a,b)的数目,使得:1≤a≤b≤n,99·N(a,b)≤100·P(a,b),和99·P( a,b)≤100·N(a,b)。
例如,C(10)= 13,C(500)= 16676和C(10000)= 20155319。
找C(2 000 000)。
Instructions
Tests
tests:
- text: <code>euler464()</code>应返回198775297232878。
testString: assert.strictEqual(euler464(), 198775297232878);
Challenge Seed
function euler464() {
// Good luck!
return true;
}
euler464();
Solution
// solution required
/section>