Problem

Source: 2019 Belarusian National Olympiad 11.5

Tags: number theory



$n\ge 2$ positive integers are written on the blackboard. A move consists of three steps: 1) choose an arbitrary number $a$ on the blackboard, 2) calculate the least common multiple $N$ of all numbers written on the blackboard, and 3) replace $a$ by $N/a$. Prove that using such moves it is always possible to make all the numbers on the blackboard equal to $1$. (A. Naradzetski)