Problems > The Divisor Game > Editorial

The Divisor Game — Solution & Editorial

Back to the Problem

Induction shows even N wins and odd N loses: every divisor of an odd number is odd, so odd always hands the opponent even; from even you can always subtract 1.

Complexity: O(1)