1.2 KiB
1.2 KiB
id | challengeType | videoUrl | localeTitle |
---|---|---|---|
5900f4bd1000cf542c50ffce | 5 | 问题335:收集豆子 |
Description
所以有5个碗需要Peter 15的动作才能恢复到初始状态。
设M(x)表示从x碗开始返回初始状态所需的移动次数。因此,M(5)= 15.还可以证实M(100)= 10920。
找到M(2k + 1)。给出你的答案模数79。
Instructions
Tests
tests:
- text: <code>euler335()</code>应返回5032316。
testString: assert.strictEqual(euler335(), 5032316);
Challenge Seed
function euler335() {
// Good luck!
return true;
}
euler335();
Solution
// solution required
/section>