1.4 KiB
1.4 KiB
id, challengeType, videoUrl, title
id | challengeType | videoUrl | title |
---|---|---|---|
5900f5101000cf542c510022 | 5 | 问题419:先说顺序 |
Description
将A(n),B(n)和C(n)分别定义为序列的第n个元素中的1、2和3的数目。 可以验证A(40)= 31254,B(40)= 20259和C(40)= 11625。
找到n(1012)的A(n),B(n)和C(n)。 给您的答案模块230,并用逗号分隔A,B和C的值。 例如 对于n = 40,答案将是31254,20259,11625
Instructions
Tests
tests:
- text: <code>euler419()</code>应该返回998567458, 1046245404, 43363922。
testString: assert.strictEqual(euler419(), 998567458, 1046245404, 43363922);
Challenge Seed
function euler419() {
// Good luck!
return true;
}
euler419();
Solution
// solution required
/section>