I have proved this for the square root of n, but not for any root of n. To prove this where k=2, I showed that:
If n is a perfect square then $\sqrt n$ is an integer and not irrational.
If $n$ is not a perfect square, assume to the contrary that $\sqrt n$ is rational and can be written as $\frac{a}{b}$.
$\sqrt n$ = $\frac{a}{b}$ where $a,b$ are integers with $GCD(a,b) = 1$
then
$ n = \frac{a^2}{b^2}$ where $b \neq 1$
But $\frac{a^2}{b^2}$ is not an integer so there is a contradiction. So $ \sqrt n \neq\frac{a}{b}$ and $\sqrt n$ must be irrational.
How would I expand this to show that it works for any value of $k$ where $k$ is the $kth$ root of $n$?