I am trying to prove that if $a^3 \mid b^2$ then $a\mid b$, where $a,b \in \mathbb{Z}$. Let $PDC(x)$ be the set of all primes in the prime decomposition of $x$.
So far, I am using the fundamental theorem of arithmetic to try to see what I can do with it. Proving contrapositively, I have $a\nmid \ b \implies \exists p $ a prime, $\exists k \geq 1$ such that $p^k \in PDC(a)$ and $\exists r \in \mathbb{Z}$ such that $p^r$ with $r < k$. So, $p^{3k} \in PDC(a^3)$ and $p^{2r} \in PDC(b)$ where $2r < 3k$ which implies that $a^3\nmid \ b^2$.
Is this valid? Thank you in advance.