Files
freeCodeCamp/curriculum/challenges/english/08-coding-interview-prep/project-euler/problem-409-nim-extreme.english.md
Valeriy 79d9012432 fix(curriculum): quotes in tests (#18828)
* fix(curriculum): tests quotes

* fix(curriculum): fill seed-teardown

* fix(curriculum): fix tests and remove unneeded seed-teardown
2018-10-20 23:32:47 +05:30

62 lines
1.1 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: 5900f5061000cf542c510017
challengeType: 5
title: 'Problem 409: Nim Extreme'
---
## Description
<section id='description'>
Let n be a positive integer. Consider nim positions where:There are n non-empty piles.
Each pile has size less than 2n.
No two piles have the same size.
Let W(n) be the number of winning nim positions satisfying the above
conditions (a position is winning if the first player has a winning strategy). For example, W(1) = 1, W(2) = 6, W(3) = 168, W(5) = 19764360 and W(100) mod 1 000 000 007 = 384777056.
Find W(10 000 000) mod 1 000 000 007.
</section>
## Instructions
<section id='instructions'>
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler409()</code> should return 253223948.
testString: assert.strictEqual(euler409(), 253223948, '<code>euler409()</code> should return 253223948.');
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler409() {
// Good luck!
return true;
}
euler409();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>