For $n \ge 1,$ and positive integers $a,b,$ show the following:
$\rm (a)$ If $\gcd(a,b)=1,$ then $\gcd(a^n,b^n)=1.$
$\rm (b)$ The relation $a^n\,|\,b^n$ implies that $a\,|\,b.$
This is a problem from Elementary Number Theory by David M. Burton. I was able to solve part $\rm(a)$ by expanding $(ax+by)^{2n-1}$ using binomial theorem and factoring. To solve part $\rm(b)$, I used Bezout's theorem along with the following hint given in the book:
Put $d=\gcd(a,b)$ and write $a=rd,b=sd,$ where $\gcd(r,s) = 1.$ By part $\mathrm{(a)},\, \gcd(r^n,s^n)=1$. Show that $r=1$, whence $a=d.$
Before seeing the hint, I tried using mathematical induction as follows.
Let $S$ denote the set of all positive integers $n$ for which $a^n\,|\,b^n\implies a\,|\,b.$ We observe that when $n=1,$ $a\,|\,b\implies a\,|\,b.$ This means that $1\in S.$
Next, assume that $k\in S$ so that $a^k\,|\,b^k\implies a\,|\,b.$ Since $a^k\,|\,b^k,$ we can write $b^k$ as $$b^k=ma^k\tag1$$ for some integer $m$, and $b$ as $b=ra$ for some integer $r$.
Multiplying $(1)$ by $b$ yields $$\begin{align*} b^k\cdot b&=ma^k\cdot b,\\ \text{or,}\quad \quad b^{k+1}&=ma^k\cdot ra,\\ \text{or,}\quad\quad b^{k+1}&=mra^{k+1},\\ \text{or,}\quad\quad b^{k+1}&=ca^{k+a},\tag{where $c=mr$}\\ \text{i.e.,}\!\quad\quad a^{k+1}\,&|\,b^{k+1}, \end{align*}$$ which is precisely the case for $n=k+1,$ putting $k+1\in S$ whenever $k\in S$. According to the first principle of finite induction, $S$ must be the set of all positive integers.
$``\,\blacksquare"$
Is my proof correct?