Let $m, n, \ell \in \mathbb N$ and $\operatorname{lcm}(m + \ell,m) = \operatorname{lcm}(n + \ell,n).$ Prove that $m=n.$
I am unable to understand how to proceed with this question. To begin, according to properties of the $\gcd,$ we have that $\gcd(m + \ell,m) = \gcd(\ell,m).$ So, I rewrote the given identity as $$\frac{m(\ell+m)}{\gcd(\ell,m)} = \frac{n(\ell+n)}{\gcd(\ell,n)}.$$
Expanding the numerators, we get $$\frac{m^2}{\gcd(\ell,m)} + \operatorname{lcm}(\ell,m) = \frac{n^2}{\gcd(\ell,n)} + \operatorname{lcm}(\ell,n).$$
I am unsure how to proceed from here. Was this even the right approach? Is there something really obvious that I am missing? Thanks.
Let's try to seek a simple answer: you arrived at $$\gcd(l,m)\cdot n(l+n)=\gcd(l,n)\cdot m(l+m)$$ Now suppose that $l=kl_1$ and $m=km_1$ for relatively prime integers $m_1,l_1$ such that $\gcd(l,m)=k$.
Now, we can also suppose $l=pl_2$ and $n=pn_1$ in a similar manner, $\gcd(l,n)=p$ and $$l=pl_2=kl_1 \iff p=k\frac{l_1}{l_2}$$ We have $$k\cdot pn_1(pl_2+pn_1)=p\cdot km_1(kl_1+km_1)$$ $$\iff k\frac{l_1}{l_2} \cdot n_1(l_2+n_1)=m_1(kl_1+km_1) \iff {l_1} \cdot n_1(l_2+n_1)=l_2\cdot m_1(l_1+m_1)$$ Now, it depends on the $\gcd(l_1,l_2)$, so we can assume again, for relatively prime $l_3,l_4$ that $l_1=ql_3$ and $l_2=ql_4$ giving $$ql_3\cdot n_1(ql_4+n_1)=ql_4\cdot m_1(ql_3+m_1)$$ $$\iff \frac{l_3n_1}{l_4m_1}=\frac{ql_3+m_1}{ql_4+n_1}$$ Now since the fraction on the left hand side is irreducible, we have $$ql_3+m_1=rl_3n_1, \ \ ql_4+n_1=rl_4m_1$$ for some positive integer $r$. This means that $l_3|m_1$, which contradicts with $m_1$ and $l_1$ being coprime giving $l_3 = 1$ and similarly, in the second equation, $l_4=1$ so we conclude $$l_1=l_2=q \implies k=p$$ Let's rewrite our equations again $$l=kq, \ m=km_1, \ n=kn_1$$ And the main equation $$k(n(l+n))=k(m(l+m)) \iff n_1(q+n_1)=m_1(q+m_1)$$ $$\iff (m_1-n_1)(m_1+n_1+q)=0 \implies m_1=n_1 \implies m=n$$