Let $D$ be an integral domain and $a,~b \in D$. Suppose that $a^n=b^n$ and $a^m=b^m$ for any two some $m,~n$ such that $(m,n)=1$. Prove that $a=b$.
I know that $ab≠0$ since $D$ contains no divisors of zero, but I don’t have an idea as to how to prove this.
Well, you know that $a^{kn}=b^{kn}$ for any positive integer $k$, and $a^{lm}=b^{lm}$ for any positive integer $l$. Multiplying the two equations, $a^{kn+lm}=b^{kn+lm}$.
Since $m$ and $n$ are relatively prime, there exist $k$ and $l$ s.t. $kn+lm\equiv 1$ mod $mn$ (choose $k$ to be the multiplicative inverse of $n$ mod $m$, and similarly for $l$).
Then we can replace $b^{kn+lm}$ with $b*(b^{kn+lm-1})=b*(b^m)^{(kn+lm-1)/m}=b*(a^m)^{(kn+lm-1)/m}$ $=b*a^{kn+lm-1}$.
This gives us $a^{kn+lm}=b*a^{kn+lm-1}$, and canceling the $a$'s gives $a=b$.
Cheers,
Rofler