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!
Because for each prime $p$ that does not divide $b$ we have $v_p(a)= v_p(ab) = v_p(m^3)=3v_p(m)$.
We can clearly make the part that is not $dp_1^{r_1}\dots p_r^{r_t}$ equal to the product of all of the $p^{v_p(ab)}$ where $p$ is a prime not dividing $b$.