Question: Suppose that a and b belongs to an integral domain. If $a^{m}=b^{m}$ and $a^{n}=b^{n}$, where m and n are positive integers that are relatively prime, prove that a=b.
Well, m and n are relatively prime so gcd(m,n)=1 holds. In fact, from the fact that the gcd of any positive integers: gcd(m,n)=1=ms+nt for some integers s,t.
Raising the element a to ms+nt: $a^{ms+nt}=a$
A good bit of hint here would be helpful.
Thanks in advance.