MathDB
2 numbers m,n on board, each gets replaced by their sum, product of int. ratio

Source: 2020 Czech and Slovak Olympiad III A p1

November 24, 2020
gamecombinatoricsratio

Problem Statement

Two positive integers mm and nn are written on the board. We replace one of two numbers in each step on the board by either their sum, or product, or ratio (if it is an integer). Depending on the numbers mm and nn, specify all the pairs that can appear on the board in pairs.
(Radovan Švarc)