Sorry if this is a duplicate, as usual I'm struggling with how to search for this.
I was wondering to myself how to prove that you can't get a square number that is twice another square number, I.e. $$m^2=2n^2$$ and I quickly came up with a neat proof using the fact: $$\frac{m}{n}=\sqrt{2}$$ The next obvious step is cubes that are thrice another cube, etc. etc. I then realised you can use this approach to prove that any power of p cannot be p times another power of p if $p^\frac{1}{p}$ is never rational. I suspect this true, but I need to go to sleep, so can somebody help me out with a proof?
$n^{\frac{1}{n}}$ cannot be rational for any positive integer $n>1$ (No matter whether $n$ is prime or composite)
This is because the number $n^{\frac{1}{n}}$ is a root of the polynomial $x^n-n$.
The leading coefficient is $1$, hence any rational root woule be an integer. If we denote $m:=n^{\frac{1}{n}}$, we get $m^n=n$. $m$ is clearly positive, so it would have to be a posiive integer, if it were rational.
We would have $m\ne 1$, hence $m\ge 2$, but then $m^n\ge 2^n>n$ for $n>1$, hence we arrive at a contradiction.