1.1 KiB
1.1 KiB
id | challengeType | videoUrl | localeTitle |
---|---|---|---|
5900f49d1000cf542c50ffb0 | 5 | 问题305:反身姿势 |
Description
很容易看出,任何数字在S中都会显示无数次。
让我们将f(n)称为S中第n次出现n的起始位置。 例如,f(1)= 1,f(5)= 81,f(12)= 271和f(7780)= 111111365。
求出∑f(3k)为1≤k≤13。
Instructions
Tests
tests:
- text: <code>euler305()</code>应该返回18174995535140。
testString: assert.strictEqual(euler305(), 18174995535140);
Challenge Seed
function euler305() {
// Good luck!
return true;
}
euler305();
Solution
// solution required
/section>