olymmath

KöMaL 2020 A790

    Andrew and Barry plays the following game: there are two heaps with aa and bb pebbles, respectively. In the first round Barry chooses a positive integer kk, and Andrew takes away kk pebbles from one of the two heaps (if kk is bigger than the number of pebbles in the heap, he takes away the complete heap). In the second round the roles are reversed: Andrew chooses a positive integer and Barry takes away the pebbles from one the two heaps. This goes on, in each round the two players are reversing the roles. The player that takes the last pebble loses the game. Which player has a winning strategy?

    Official text KöMaL. Quoted with source.

    Solutions

    No solution is on olymmath yet. Official and human solutions come first when they arrive. AI solutions come after them, with a label.

    Add a solution

    Similar problems

    These problems have the most words in common with this statement.

    Locator hu-komal/2020/a790 · Tag 81JSKJBMP1 · Edit this page on GitHub · Keys: j next, k previous