Problem #PRU-30437

Problems Discrete Mathematics Algorithm Theory Game theory Fun games Number Theory Divisibility Odd and even numbers

Problem

On a board there are written 10 units and 10 deuces. During a game, one is allowed to erase any two numbers and, if they are the same, write a deuce, and if they are different then they can write a one. If the last digit left on the board is a unit, then the first player won, if it is a deuce then the second player wins.