Token Game
Source: KöMaL A. 812
March 23, 2022
komalgamewinning strategycombinatorics
Problem Statement
Two players play the following game: there are two heaps of tokens, and they take turns to pick some tokens from them. The winner of the game is the player who takes away the last token. If the number of tokens in the two heaps are and at a given moment, the player whose turn it is can take away a number of tokens that is a multiple of or a multiple of from one of the heaps.Find those pair of integers for which the second player has a winning strategy, if the initial number of tokens is in the first heap and in the second heap.Proposed by Dömötör Pálvölgyi, Budapest