freeCodeCamp/curriculum/challenges/spanish/08-coding-interview-prep/project-euler/problem-409-nim-extreme.spa...

1.2 KiB

id challengeType title videoUrl localeTitle
5900f5061000cf542c510017 5 Problem 409: Nim Extreme Problema 409: Nim Extreme

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.

Encuentre W (10 000 000) mod 1 000 000 007.

Instructions

Tests

tests:
  - text: <code>euler409()</code> debe devolver 253223948.
    testString: 'assert.strictEqual(euler409(), 253223948, "<code>euler409()</code> should return 253223948.");'

Challenge Seed

function euler409() {
  // Good luck!
  return true;
}

euler409();

Solution

// solution required