There's a hint in the question: [ Put $d = \gcd(a, b)$ and write $a = rd, b = sd$, where $\gcd(r,s) = 1$. If $\gcd(r,s) = 1$ then $\gcd(r^n, s^n)=1$. Show that $r=1$, whence $a = d$.]
My proof is closer to this answer here.
Proof:
Let, $d = \gcd(a, b)$ and $a = rd, b = sd, \gcd(r, s) = 1$.
$a^n|b^n$, so let $b^n = pa^n$
$(sd)^n = p(rd)^n$, $s^n = pr^n$.
Since $\gcd(r^n, s^n)=1$, $r^n=1$ (I'm confused if this can be written from the previous line: $s^n = pr^n$) or $r=1$.
This means $a=rd=d$, and therefore, $a|b$.
Kindly tell me if my proof is correct. Thank you.
My reasoning while writing the proof was, since p and $r^n$ both divides $s^n$, but $r^n$ cannot divide $s^n$, that means $r^n=1$. Is this reasoning okay?
– alu Sep 24 '21 at 21:08