PROJECT EULER · #0310
Nim Square
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
If
Find the number of losing positions for the next player if
Write-up coming later
The complete problem is available here. An approach, code, and answer will be added later.