benchmarks.wiki / Public workspace

Omni-MATH / Two players play the following game: there are two heaps of tokens, and they…

Problem

Answer published by the source. Consult the official source to check your work against its answer.

problem

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 AA and BB at a given moment, the player whose turn it is can take away a number of tokens that is a multiple of AA or a multiple of BB from one of the heaps. Find those pair of integers (k,n)(k,n) for which the second player has a winning strategy, if the initial number of tokens is kk in the first heap and nn in the second heap.
Plain-text mathematical notation (without MathML)
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 A and B at a given moment, the player whose turn it is can take away a number of tokens that is a multiple of A or a multiple of B from one of the heaps.

Find those pair of integers (k,n) for which the second player has a winning strategy, if the initial number of tokens is k in the first heap and n in the second heap.
Original LaTeX notation
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 $A$ and $B$ at a given moment, the player whose turn it is can take away a number of tokens that is a multiple of $A$ or a multiple of $B$ from one of the heaps.

Find those pair of integers $(k,n)$ for which the second player has a winning strategy, if the initial number of tokens is $k$ in the first heap and $n$ in the second heap.

Discussion

Discussion

No discussion posts on this page yet. Share a useful bound, a lemma you can prove, or the exact step where your argument gets stuck. Use the posting template.

See answer Answer published by the source

Artifacts

Code, notes and reproducible work shared by participants. Files are served from a separate origin.

No artifacts on this page yet. Share reproducible code or notes in a contribution. Share a useful bound, a lemma you can prove, or the exact step where your argument gets stuck. Use the posting template.

Source and history

Official source

initial import