56 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			56 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| ---
 | |
| id: 5900f5061000cf542c510017
 | |
| challengeType: 5
 | |
| title: 'Problem 409: Nim Extreme'
 | |
| videoUrl: ''
 | |
| localeTitle: 'Problema 409: Nim Extreme'
 | |
| ---
 | |
| 
 | |
| ## Description
 | |
| <section id="description"> Sea n un entero positivo. Considere las posiciones nim donde: Hay n pilas no vacías. Cada pila tiene un tamaño inferior a 2n. No hay dos pilas que tengan el mismo tamaño. Sea W (n) el número de posiciones nim ganadoras que satisfacen las condiciones anteriores (una posición es ganadora si el primer jugador tiene una estrategia ganadora). Por ejemplo, W (1) = 1, W (2) = 6, W (3) = 168, W (5) = 19764360 y W (100) mod 1 000 000 007 = 384777056. <p> Encuentre W (10 000 000) mod 1 000 000 007. </p></section>
 | |
| 
 | |
| ## Instructions
 | |
| <section id="instructions">
 | |
| </section>
 | |
| 
 | |
| ## Tests
 | |
| <section id='tests'>
 | |
| 
 | |
| ```yml
 | |
| tests:
 | |
|   - text: <code>euler409()</code> debe devolver 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>
 |