Let $a,b,n \in \mathbb{N}.$ Prove that if $a^n \mid b^n$, then $a \mid b$.
$\textit{Proof.}$ Consider the prime factorizations for $a$ and $b$ as follows:
$$a=p_1 \cdots p_r, $$ $$b=q_1 \cdots q_s.$$
Where $q_i, p_j$ are all prime numbers. Observe that $p_k$ could be equal to $p_m$ for some $m≠k$, and similarly for $q$. (In other words, for simplicity I decided not to write $a=p_1^{\alpha_1} \cdots p_r^{\alpha_r}$).
Then, we have $$a^n=p_1^n \cdots p_r^n,$$ $$b^n=q_1^n \cdots q_s^n.$$
Note that the prime factors of $b$ are exactly the same prime factors of $b^n$, but each prime factor of $b^n$ is to the $n$-th power.
Since $a^n \mid b^n$, then $b^n=a^n \cdot q$ for some integer $q$, so that
$$b^n = p_1^n \cdots p_r^n \cdot q$$
If $p_i$ for some $i$ doesn't appear in the prime factors of $b$, then $p_i$ couldn't appear in the prime factors of $b^n$. Then, each $p_i$ appearing in $b^n$, will appear in $b$. Hence, $b=p_1 \cdots p_n \cdot p$ for some integer $p$. Then $b=ap$, as desired.
... $\textit{Q.E.D.}$??
This question have be answered before, here is an answer by Bill Dubuque.
Hint $\,\ \dfrac{b^n}{a^n} = k\in \Bbb Z$ $\ \Rightarrow\ $ $x = \dfrac{b}a\ $ root of $\ x^n\!-k$ $\!\!\!\!\underbrace{\Rightarrow\,x\in\Bbb Z}_{\text{ Rational Root Test}}\!\!\!\!\!$ $\,\Rightarrow\, a\mid b $
Another answer in a different way by awllower,
Prime factorization is not needed: we only need the fact that every integer $\ne\pm1$ has a prime divisor.
Define $r=a/b\in\mathbb Q.$ As $b^n\mid a^n,$ we know $r^n\in\mathbb Z.$
Write $r=a'/b'$ with $\gcd(a',b')=1.$ Let $s=r^n.$ Then $r^n=s$ implies that $(a')^n=(b')^n\cdot s.$ This shows that every prime divisor of $b'$ divides $(a')^n;$ by the definition of a prime, this means that every prime divisor of $b'$ divides $a'.$ This contradicts $\gcd(a',b')=1.$ Therefore $b'$ has no prime divisor, and is equal to $\pm1.$ Thus $r=a/b=a'/b'=\pm a'\in\mathbb Z.$ So $b$ divides $a.$