1.3 KiB
1.3 KiB
id | challengeType | title |
---|---|---|
5900f4bd1000cf542c50ffce | 5 | Problem 335: Gathering the beans |
Description
So with 5 bowls it takes Peter 15 moves to return to the initial situation.
Let M(x) represent the number of moves required to return to the initial situation, starting with x bowls. Thus, M(5) = 15. It can also be verified that M(100) = 10920.
Find M(2k+1). Give your answer modulo 79.
Instructions
Tests
tests:
- text: <code>euler335()</code> should return 5032316.
testString: 'assert.strictEqual(euler335(), 5032316, ''<code>euler335()</code> should return 5032316.'');'
Challenge Seed
function euler335() {
// Good luck!
return true;
}
euler335();
Solution
// solution required