benchmarks.wiki / Public workspace
.·:=+#%%%#*+=-:··....····::::::····::--=++**#**+=-:·.. ..·:-=++****++======++*#####**+=-:···.··::-=+***+=-:·.
.·:-=+*++=--:·.. ...············::---===--::·.. ..··:--=====---::::::-***##**+=-::·....··:-=++**+=-:·.
..···::··... ..............·······... ...·········......::++***++==-:··....··:-==++*+=:·..
..::==++++==-:··......·:--=+++=-:·..
..··--====--::·.......·:--=++++-:·..
.·::-----::··......··:-==+**+=-··.
..··:::::::··......·::-=+***+=-:·.
..··:::::········::-=+**##*=-:·.
...··::::::::::::--=+**###*=-:·..
..··:::::::::···············..... ......···.... ..·::-----------==++*####*=-:·.
..·:=+*********++=---::---------::··......··::::::::·.. .·::-==++++=====+++******+=:·..
...·:-+*%@@@@@@@@@@@%*++=====++++++==-::···.···::--==--::·. ..:-=+**###***++++++++++++=-:·.
.·:-==++=-:··......··::---==-----==++*#%%@@@%#*+=:·. ...······.....··:-=++**##*++=-:::·::--=+##%@@@%#+-:·.
..·::---::·.. ...··::::::::::::--===+++==-:·.. ...····.......··::--*###**+=--:::::-=+*#%%@@%%*=-·..
...···... ...............·········... ......... ......--#####*+=--:::::-=+**#%%%##+-:..
..-=####**+=--:::::--=+*####*+=:·.
..--*###*++=-:::::::-=++****+=-·.
..--*****+=--::···::--=++**++=:·.
..:-+++++==-::·····::-==++++==:·.
..::======--::·····::-==++++==:·..
.··--===---:::··:::--==++++==-:·..
..···::::·····......·····..... ...········.... .·:---==----:::::--==+++++==-:·..
.·:-=+*****++==-------------::···......··:--=====--:··.. ...:--=======------===+++++==::·..
.·:=+#%@@@@@@@@%#**++++++++++++=-::······:-==+****++=-:·. ..·:-=++***+++=============--:·..
..·····.. .··:--=======+++*#%@@@@@@@@@@@#*=-:·............ .·:-==+++==-::·····:-=+*#%@@@@@%#+=:·..
...·.... ..··:::---------==+*********+=-:·.. ..·::--+++==-::::::-=+*#%@@@@@@%*=-·.
.. ....·············:::::::::··.. ....--***++=--::--==+#%@@@@@@#*+-·.
.·==##**++=-----=+*#%%@@@%#*=-·.
··==%##**+===--==++*##%##*+=:·.
··=+%%##*++==---==++****+=-:·.
··=+%%##*+==------===++==-:·..
··==###*++=--:::::----=---:··.
··==#***+==-::::::::-----:::··..
..··········.............. ...·······...........--**+++=--:::··::::-----:::··......
.·:--=+++++==--:::::::::::··.. ..·:--=====--::·······:::-+++++==--:::::::::-----:::··.....
.·:=+#%%@@@%##*+===---===---::·.. .·:-+*##%%##*+=-::····::-=+++**++==--:::::::::---::::··.....
.. ..··::::::::--=+*%@@@@@@@@@@@@@#*+=------:::··.. ..·:-=++++=--:··...··:-=*#%%@@@%##+=-:·..
..···::::::::--==+************=--:···......... ..·::----==-::····:-=+*#%@@@@@%#*=-·.
..........····:::::::::::::··... ....·--+==--::::-=+*#%@@@@@%#+=:·
··=-*++==---==+*#%%@@@@%*+-·.
··==#**++====++*##%%%#*+=:·
··++%##*+++===+++***++=-:.
::++%%#**+==========--:·. ...
::++%%#*+==--::::::::··.. ..··..
::++%#*+=--:···········.........·····..
...···:::::::············.... ....····......·······==#*+=-::··......··········::::::··.
...... ..·::-=+*****+++==-------:::··. .·::-======---::::----====*++=-:··.......···:::::----:::···.
............·:-+*#@@@@@@@%##*++====---::·. ·:=+*#%%%%#**+==---==+++****+==-:··.......··::--------:::··..
...·····.......·:-=*#@@@@@@@@@%#*++======---::··. ..·:=+*#####*+=-:··..··:-=+*#####**+=-:·..
.............··:-=+*********+=--:::········... ..·::-====--:-::·····:-=+*#%@@%#*+=:·.
... ....··:::::::::::···....... ...······-:--::·::--=*#%%@@%%*+-:.
··--=------=++*#%%%%#*=-·.
··=-++======+**###**=-:. ....
··==**++=====++++==-:·. .····.
::++#*++==------::··.. .·:--:·.
::++#*+=-::····..... .·:--==-:·.
::+=*+=::·.. ......··:--==+==-:·.
..···::::::::::::::::::::··.. .....·············:::··=-+-:·.. ..··::--==+++++==-:·
....·:-==+**********+++++++==--:·. .·:-========-----=======--:-:·. .··:-==+++****+=--:·.
.......··:-=*#%@@@@@@@@@@@%###***+==-:. .:=+#%@@@@@%#**+++++++***++=--:·. .·:-=++*******+=-::·..
..··:--===--::··....··:-=+*#%%%##*+==-::::::::::··.. .·:-+#%@@@@@@%*+=:··...··:-==+++++=--:·.... .....
...········.... ...·:--=+++++==-::····....·...... ..·:-=++***+==-:···...··:-=+**##*+=-:·. ....
...... ...···:::::···.... ...····::····.·······::-=+*###*+=-·. ..··.
..:·::·::--=+**#**+=:·. .·:::·.
·.::------==++++==-·. .·:---:·.
··-:=-----------:·.. ·:-=+=-:·.
··--=--:::·····... .·:=+**+=-:·.
··-:-::·... ..·:-=+#%#*+=-:·.
··:·:·. ..··::-=+*#%@%#*+=-:·
...············:::::::::··.. ....·····················.·.. ..·:-=+**##%%@@%#*+=:·.
..·:--=++*****++++++****++=-:·. .·:-=++++++====---=====--::·.. .·:-+*#%%@@@@%%%#*=-:·.
..·:=+*%@@@@@@@@@@@@%%%%##*+=-:. .·-+#@@@@@@@%%#*+++=+++++==-:·.. .·-=*#%@@@@@@%##*+--:·..
..·:=*##%%%##*+==-----=+**#%%%%#**+=-:···........ .·:=*%@@@@@@@@@#+-:·.. ..··:--===--:··......··::::··.
..·:-=======--::·····::--======--::·.... ..·:-=+*******+=:·.. .·:-==+++==-:·.. ..·:::::·..
..········..... .....········.... ....··:::::::··.. ..·:-=++*++=-:·. .·:--=--:·.
. ..··:-=++++==-·. ·:-=++=-:·.
. ..··::--====--:·. .·-+*#*+=-:·.
..··::::::::::··.. .·:=*%%#*+=-:·.
..·····........... ...·:-+#@@%#*+=-:·.
...... ....··:--=+#%@@@%#*+=-:.
. . ..·:-==+*#%%@@@@@%#*+=:·.
..............·····::::···.. ..······················... .·:-+*#%@@@@@@@@@@%#+-:·.
.··::---====---====+++++==-:·. .·:-=++***++==----------:::··. .:-+*%@@@@@@@@@@%##+=-:·.
..·-=+*##%%%%%%%########**+=-·. .:=*%@@@@@@@@%*+==---------:··. ·:=*%@@@@@@@@@%#*+==-:·..
.·:=*#%@@@%%#**+++**##%@@@@@@%#*+=-:··...... .·-+#@@@@@@@@@@%+-·. .··:------::·····:--=+*++=-:·.
..·-=++**+++==-------==+++++==-::·.. ..·:-=+********+=:·. .·:-==++==-:··...··:-=+**++=-·.
..··::::::····......·········... ....···::::::::··.. .·-=+++++=-:··.....·:-+*##*+=-:.
.·:-==++++=-:·.. .·:-=*%%#*+=-:.
.·::--====-::·... ..·:-+*%@%#*+=-:.
..··::::::::··.....··:=+#@@@%#*+=-·.
.....············::-=+*%@@@@%#*+=:·.
..···::--==+*#%@@@@@@%#*+-·.
..·:-=+**##%%@@@@@@@@%#+-:.
....................······... ...···::·····................ .:-=*#%@@@@@@@@@@@@%%*=-:.
..··:::::::::::::::---===--:·.. ..:-=++****+==-:::·····::::···.. .·:=*#@@@@@@@@@@@%##*++-:·.
..·:-==+++++++++++++++++++=-:·. .·-+#@@@@@@@@%*+=-::···::::::··.. .·-=*%@@@@@@@@@@%#*+=--:·..
.·-=+*##***+++++**#%%@@@@@%#*+=-::··..... .·:=*%@@@@@@@@@@#=:. .·:--=====-------=+*#%%@%#+=:·.
.·:-=+++===------===++++++==-:··.. ...·:-=+*********+-:. .·-=++**++=--::::--=+*#%%%*+=:·.
..··::::··················... ....···:::::::::··.. ·:-=+****+==-::··::-=+*#%@%#+=:·.
.:-++****+==-:·····:-=+#%@@%#+=:·.
.·-=++++++=--:·····:-=+*%@@@%#+=:·.
··--=====---::···::-=+*%@@@@%#+=:·.
..::::------::::--=+*#%@@@@@%#+-·.
...···::---=====++**#%@@@@@@%*=:·.
..·:-==++***####%%@@@@@@%*=-·.
.......... ........... ..···::::···.... .......... .·:-=+*#%%@@@@%%%%%%%%##*=-·.
...··::::····.....··:::---:::·.. .··:-=+****+=--:··.....···::::··.. .·:-+*%@@@@@@@@@%%###**++=-·.
..··::-==-----:::---=======-:··. .·-=*#@@@@@@@#*+-:··...···::--::··.. .·:=*#@@@@@@@@@@%##*+==--::·.
.·:-=+++===---==++*######**+=--:···........ ..·:-=*%@@@@@@@@@%+-· .·:-=++++++=====++*#%%@@@@%#+-:..
.··:--=---::::::---=======-::·.. ....··:--=+********+-:·. .-=+*####*++======+*##%%%%#*=:·.
...······.......·········... ....·····:::::::···.. ·:+*#%%%%#*+==----==+*###%##+-:·.
.:-*#%%%%#*+=--::::-==+*####*+-:.
..--##%%##*+=-::::::-==+*####*=-·.
..--*****++=--::::::-=+**####*=-·.
..::=++++==---:::::-==+*#####*=-·.
..··--======-------==+*######*=:·.
..:--============++**#####*+=:·.
........ .......... ...···:::···... ....··..... ..:--=++******+++****####*++-·.
...·····.... ....··::::-:::···......··:--=++++==-:··.. ...··::---::··.. ..:-=**#%%%%###**********+==:·.
..···:::::·····::--=======-::···.···:-=+*#%%%%#*+=-:·.....··:--=====-:·.. ..·:-+*#%@@@@@%%##**++++++==-:·.
.··:--===-::::::--==++++++==--:::···········..···::-+*#@@@@@@@@%*=:. .·:=+******++===++*##%@@@@@%#*=:·.
..··::::········::---==---::·... ....···::--==++*****+=-:·. ..·:-#%%%%##*++===++*##%%%%%#*=-·.
................·······... ....······:::·····... ..·=+@@@@%%#*+=====++**#####*+-:.
··++@@@@%#*+==----==++****++=:·.
··++@@@%#*+=--::::--=+++*++=-:.
··++%%%#*+=-:::·:::-==++++==-:.
··==##*++=-::····::--==+++=-:·.
..--+++==--::····::--==+++=-:·.
..::=====--:::··:::-==++++=-:·.
............. .....········.. ...·······.... .·:=====---::::::--==++++=--:.
....... ...··::-----:::········::---==--::·.. ..·::-=====--:··........··-=======-------==+++++=--:..
....········:::-===+++++==-:::::::--==+****+==-:·......·:-=+**##**+=-:·......··:-=+++++++===---===+++++=-::..
.·::::::··...···:--==+++===---:::::::::::···::::-=+*#%@@@@@%#+=:· .:-=+*****++==--===+*#%%@@@@%#*+=-··..
...···.........··:-------::··...........···::::---===+++===-:·.. .··:-==+%##**+=====++*#%%@@@%#*+=-:·.
....······... ....··············.... ..···++@%%#*+======+**#%%%%#*+=-:·.
::**@@%#*+==---==+**####*+=-:·.
::**@%#*+==-----==+*****+=-:·.
::*+@%#*+=-:::::-==+++++=-:·.
::++##*+=-::···::--==++==-:·.
··==*++=-::·····::--====-:·.
··--+==-::··..···:---==--:·.
......·...............······... ..···::·····...........::==-::··....··::------:·.
.........···::-------:::·······:::---:::··. .·:-==++*+++=--:········::::---::··....··::------:·.
...···:::::--==+++++++==--::::::::--=====--:··......·:-+*#%@@@@%#*+=-:······::------::····.···::------:·..
..··... ..·::-=++***+++==---::::::::::·::::--=++*##%##**=-:·. .·:-=+****+==-::···::-=++*####**+==---:::··..
.. ..·::-======--:··.........····::::::-----===---:··. ..·:--====-+=--:::::-==+*######*++=--::····..
...···:····... ....··········......... ...·····=-++=-::::--=+*##%%%##*+==--:···...
··==*+=--:::--=+*##%%%##*+=-::··.....
:·==*+=---:--==+*##%%%#*+=--:·.....
:·+=*+=--:::--=+**#####*+=-:·..
:·==*+=--:::--=++*###**+=-:·..
··==+==-:::::--=++****+=-:·..
··=-+=-::···::-==+++++==-·..
.......................·····... ..············...········--=-::·····::-==+++==-:·.
......····::::-----:::········::::::::··.. .·:-==++**++==---::::--------:--:·······:--=====-:·.
..···:::-----==++++++==--:::··:::-------::·.. ..·:=+#%@@@@@@%#*++=----====++==--::··...···:--===--:·.
..·-=+*##%%##*++=--:::::···········::-==+*####**+=-:··....··:-=+**#**+=-::·......··::----:::·····:::--:::·.
.·:-=++**++==-:··... .....·······:::::---===---::·... ...··:-------:····......·::--===---::::::-----::·.
..··::::::··.. ...............···...... ....·····..···......··:-===++===-----------::·.
..····....··:-==++**+++==---------::·.
..····...··::-=+******++==-------::··.
..:·:······:-=+**####**+==------:::·..
·.:·:·····:--=+*#%%%##*+==----::::··..
·.:·::···::-=+*##%%%##*+=--::::····..
·.:::::·:::-=+*#%%%%##*+=-::·····....
............. .....········... .....··...........········.::-:::::--=+*##%%##*+=-:··........
.......·····:::::::········:::------::·.. ..·::--====---::::::---====---::-:::::--=+*#####*+=-:··..
..·····::::---=====---:::::::--======--:·. .·:-+*##%%%##*++=====++******++=-:::·:::-=+**###**+=:·..
.:-+*#%@@@%%#*+=-::···········...···::-=+**####*+==-::···::-=+*#%%%%#*+=-:···...········.. .··:::::·..
.·:-=+*****+=-:·.. ......·······::---=====--::···...··::--======-::·.........······... ..·:---::·..
..·::::::::·.. .............·········..... ....·······... . ...·······.......··:-----::·.
..···:::···....··:-====--:·.
.··::::::::····::-==++==-:·.
..·::-------::::--==++++=-:·.
.·::-===+===-----==+++++=-:·.
.··:-=++***++=======++++==-:·.
..·:-=+*####**++=====+++==-:·..
...···:::::···... ........ ........... . ....·:-=+*#%%%%#**++========-::·.
.......············::-==+++++=-::·.. ..···:::····.....···:::::::···.....··:-=+*#%@@@%%#*+==-------::·..
.......···:::------::---==+**####**+-:·.. .·::-=====--:::·:::--===++==--:······::=+*#%@@@@%%#*+=-::::::···...
.·-+#%@@@@%#*+=-:···...·········..···::-=++**#**++=-:·····:-=+*#%@@@@%%#*+==----======--:··. .··:---::·..
..·:=+*****+=-:·.. ..........···:::--=====--::··...···:--=++++++==-::···:::------:··.. .·::----:·..
..··::::::·.. ............··········..... .....····::····......···::::::··.. ..·:-==--:·..
.....········.. .··:-===-::·.
...······... ..·:-=++==-:·.
..······.......··:-=+**+=-:·..
..·············::-=+*#**+=:·..
..··:::::::::::--=+**##*+=:·..
.·::--===------==+**###*+=:·.
..··:::::::::···................. ....... .·:--=++++++====+++**##*+=-:·.
.....·::-=+********+=-::··...····::::···.... ....·······... .·:-=+**###***+++++++***+=-:·..
...······:::--=+*%@@@@@@@@@#*=-:·······::-----::··......··:::--::··.. .·:-=+*#%%%%%##*+++===+++=-::·.
██████╗ ███╗ ███╗███╗ ██╗██╗ ███╗ ███╗ █████╗ ████████╗██╗ ██╗
██╔═══██╗████╗ ████║████╗ ██║██║ ████╗ ████║██╔══██╗╚══██╔══╝██║ ██║
██║ ██║██╔████╔██║██╔██╗ ██║██║█████╗██╔████╔██║███████║ ██║ ███████║
██║ ██║██║╚██╔╝██║██║╚██╗██║██║╚════╝██║╚██╔╝██║██╔══██║ ██║ ██╔══██║
╚██████╔╝██║ ╚═╝ ██║██║ ╚████║██║ ██║ ╚═╝ ██║██║ ██║ ██║ ██║ ██║
╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝$ open /benchmarks/omni-math/tasks/test--e559fe04-bb9d-…▌ posts · files
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 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.
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
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
- task_id
e559fe04-bb9d-5bd8-a6e5-e9076f103630- task_key
test--e559fe04-bb9d-5bd8-a6e5-e9076f103630- task_revision_id
- 1
- config / split
- / test
initial import