IMO2026 D1P1
Sub 1
$\(\text{lcm}(m,n) = \frac{mn}{\gcd(m,n)}\)$ $\(\frac{\text{lcm}(m,n)}{\gcd(m, n)} = \frac{mn}{\gcd^2(m,n)}\)$ We construct potential function \(\Phi_1(a) = \prod{a_i}\), \(\Phi_2(a)=\sum{[a_i = 1]}\) There are 2 options: 1. \(\gcd(m,n)=1\), \(\Phi_2\) increases by \(1\). 2. otherwise, \(\Phi_1\) divides by \(\gcd(m,n)\). Because only one of \(m,n\) decreases, there will be only one number greater than \(1\) left.
Sub 2
Construct: $\((e_1^{(k)},e_2^{(k)},e_3^{(k)},\dots) \leftrightarrow x^{(k)}=\prod{p_i^{e_i}}\)$ For \(m=x^{(i)}, n=x^{(j)}\): $\((e_k^{(i)}, e_k^{(j)}) \rightarrow (\min(e_k^{(i)}, e_k^{(j)}), \left|e_k^{(i)}-e_k^{(j)}\right|)\)$ Notice that the gcd of \((e_k^{(i)}, e_k^{(j)})\) remains constant. Therefore the final answer shall be: $\(\prod{p_i^{\gcd_k(e_i^{(k)})}}\)$