If $p$ and $q$ are coprime integers, does that mean the positive integral powers of $p$ and $q$ are coprime as well? I.e. $a^x = b^y$ with $a, b, x, y \in \mathbb{N}$ and $a,b$ coprime.

E.g. if $p$ and $q$ are coprime integers does that imply $p^3$ and $q^3$ are also coprime?

  • 2
    $\begingroup$ Sure, because raising to a power doesn't introduce any new prime factors. $\endgroup$
    – user4894
    Sep 20, 2014 at 19:22

2 Answers 2


They will be because if there was a prime divisor $r$ such that $r | p^3$ and $r | q^3$, then $r|p$ and $r | q$ which will contradict the relative primality of $p$ and $q$.


$x^y$ has the same prime factors as $x$ when $y$ is an integer.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .