This is homework but I would appreciate a hint :
If $(a,b)=1$ and $(\frac{a}{b})^m=n$ then show $b=1$
From $(\frac{a}{b})^m=n$ we can conclude that $a^m=n b^m$ so $b^m | a^m$ But what next? It’s obvious that because of $(a,b)=1$ b should be 1 to make that happen but how should I write it down ?