Alice and Bob are playing a turn based game on a circular field surrounded by flowers. There are
The rules of the game are as follows:
Alice moves first.
In each turn, the current player must pick
The player who picks the last flower wins the game.
Given two integers n and m, determine the number of pairs n, m, and Alice wins the game assuming both players play optimally.
Constraints:
n, m
Alice and Bob are playing a turn based game on a circular field surrounded by flowers. There are
The rules of the game are as follows:
Alice moves first.
In each turn, the current player must pick
The player who picks the last flower wins the game.
Given two integers n and m, determine the number of pairs n, m, and Alice wins the game assuming both players play optimally.
Constraints:
n, m