1.5 KiB
1.5 KiB
id | challengeType | videoUrl | localeTitle |
---|---|---|---|
5900f4ab1000cf542c50ffbd | 5 | 问题318:2011个九 |
Description
这些幂的小数部分开头的连续九个数字似乎没有减少。 实际上,可以证明(√2+√3)2n的小数部分对于大n接近1。
考虑形式为√p+√q的所有实数,其中p和q为正整数,且p <q,使得小数部分 (√p+√q)的2n对于大n接近1。
令C(p,q,n)为(√p+√q)2n的小数部分开头的连续九个数字。
令N(p,q)为n的最小值,以使C(p,q,n)≥2011。
求p + q≤2011的∑N(p,q)。
Instructions
Tests
tests:
- text: <code>euler318()</code>应该返回709313889。
testString: assert.strictEqual(euler318(), 709313889);
Challenge Seed
function euler318() {
// Good luck!
return true;
}
euler318();
Solution
// solution required
/section>