* feat(tools): add seed/solution restore script * chore(curriculum): remove empty sections' markers * chore(curriculum): add seed + solution to Chinese * chore: remove old formatter * fix: update getChallenges parse translated challenges separately, without reference to the source * chore(curriculum): add dashedName to English * chore(curriculum): add dashedName to Chinese * refactor: remove unused challenge property 'name' * fix: relax dashedName requirement * fix: stray tag Remove stray `pre` tag from challenge file. Signed-off-by: nhcarrigan <nhcarrigan@gmail.com> Co-authored-by: nhcarrigan <nhcarrigan@gmail.com>
1.3 KiB
1.3 KiB
id, title, challengeType, videoUrl, dashedName
id | title | challengeType | videoUrl | dashedName |
---|---|---|---|---|
5900f4ab1000cf542c50ffbd | 问题318:2011个九 | 5 | problem-318-2011-nines |
--description--
考虑实数√2+√3。
当我们计算√2+√3的偶数幂时
我们得到:
(√2+√3)2 = 9.898979485566356 ...
(√2+√3)4 = 97.98979485566356 ...
(√2+√3)6 = 969.998969071069263 ...
(√2+√3)8 = 9601.99989585502907 ...
(√2+√3)10 = 95049.999989479221 ...
(√2+√3)12 = 940897.9999989371855 ...
(√2+√3)14 = 9313929.99999989263 ...
(√2+√3)16 = 92198401.99999998915 ...
这些幂的小数部分开头的连续九个数字似乎没有减少。 实际上,可以证明(√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)。
--hints--
euler318()
应该返回709313889。
assert.strictEqual(euler318(), 709313889);
--seed--
--seed-contents--
function euler318() {
return true;
}
euler318();
--solutions--
// solution required