Replace a and b with a-2b
Source: Cyprus 2022 Junior TST-3 Problem 4
March 26, 2022
combinatoricsinvariant
Problem Statement
The numbers are written on the blackboard. In each step, Andrew chooses two numbers which are written on the blackboard such that , he erases them, and in their place writes the number .Find all numbers , such that after a sequence of steps as above, at the end only the number will remain on the blackboard.