MathDB
Evan's mean blackboard game

Source: 2019 USAMO Problem 5, 2019 USAJMO Problem 6

April 18, 2019
number theoryrelatively primeUSA(J)MOUSAMOUSAJMO

Problem Statement

Two rational numbers mn\tfrac{m}{n} and nm\tfrac{n}{m} are written on a blackboard, where mm and nn are relatively prime positive integers. At any point, Evan may pick two of the numbers xx and yy written on the board and write either their arithmetic mean x+y2\tfrac{x+y}{2} or their harmonic mean 2xyx+y\tfrac{2xy}{x+y} on the board as well. Find all pairs (m,n)(m,n) such that Evan can write 1 on the board in finitely many steps.
Proposed by Yannick Yao