I am doing my thesis on elliptic curves right now and in the meantime this lemma showed up:
Suppose $a$ and $b$ are integers such that $ab = m^3$ for some integer $m$. Let $d = \operatorname{gcd}(a,b)$, then we can write \begin{equation}\label{} a = d\cdot p_1^{r_1}\cdots p_t^{r_t}\cdot (\operatorname{integer})^3, \end{equation} where $p_i|d$ and $r_i \in \mathbb{Z}$.
So I tried taking a prime that does not divide $d$ and tried to show it must appear as a third power, however I couldn't figure it out. Any help would be appreciated!