Recently, I have found this problem:
Given two natural numbers $m$ and $n$, find the number of tuples $(m,n)$ such that: $$m+n=\text{gcd}(m,n)+\text{lcm}(m,n)=9!$$
I hav completely no idea of how to do it because I am used to operate with the formula $\text{gcd}(m,n)\cdot\text{lcm}(m,n)$ and not with the sum $\text{gcd}(m,n)+\text{lcm}(m,n)$.
In order to escape from this problem, I have tried to set $n=9!-m$ and then substitute for $n$, but here I am stuck agian because I have to work with: $$\text{gcd}(m,9!-m)+\text{lcm}(m,9!-m)$$
Any idea of how to proceed? Thanks.
I’ll get you started. Let $d=\operatorname{gcd}(m,n)$, and let $m'=\frac{m}d$ and $n'=\frac{n}d$. Then $\operatorname{gcd}(m',n')=1$ and $\operatorname{lcd}(m,n)=dm'n'$, so
$$m'+n'=1+m'n'=\frac{9!}d\;.$$
Now
$$\begin{align*} 0&=(1+m'n')-(m'+n')\\ &=m'n'-m'-n'+1\\ &=(m'-1)(n'-1)\;, \end{align*}$$
so $m'=1$ or $n'=1$. Can you take it from here?