Files
freeCodeCamp/curriculum/challenges/english/08-coding-interview-prep/project-euler/problem-310-nim-square.english.md
Randell Dawson a7eb800450 fix(curriculum): Remove unnecessary assert message argument from English Coding Interview Prep challenges - Project Euler - 04 (#36418)
* fix: removed assert msg argument-4

* fix: remove double quotes surrounding testString code

Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>
2019-07-27 07:34:19 -05:00

1.0 KiB

id, challengeType, title
id challengeType title
5900f4a21000cf542c50ffb5 5 Problem 310: Nim Square

Description

Alice and Bob play the game Nim Square. Nim Square is just like ordinary three-heap normal play Nim, but the players may only remove a square number of stones from a heap. The number of stones in the three heaps is represented by the ordered triple (a,b,c). If 0≤a≤b≤c≤29 then the number of losing positions for the next player is 1160.

Find the number of losing positions for the next player if 0≤a≤b≤c≤100 000.

Instructions

Tests

tests:
  - text: <code>euler310()</code> should return 2586528661783.
    testString: assert.strictEqual(euler310(), 2586528661783);

Challenge Seed

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

euler310();

Solution

// solution required