$x^n=N$, where n and N are positive integers.
Hence, $x=N^{(1/n)}$
Let $x=N^{(1/n)}$=$\prod_{i=1}^{j} a_{i}^{(x_{i}/n)}$, where $a_{i}$ is a distinct prime factor of $N$ and $x_{i}$ is $a_{i}'s$ multiplicity.
Hence, ${x_{i}/n}>0$, as the prime factors multiplicity is positive, and n is positive.
Considor $x=a/b$, where a and b are positive integers.
In this scenario, x is only an integer if all primes in b are also in a, and the resulting multiplicity of all prime factors is positive.
Hence, if x is not an integer, there must be some primes in x that have negative multiplicities.
But, we have seen before that for $x=N^{(1/n)}$, x must contain only prime factors with positive multiplicities, hence any number of the form $a/b$, not being an integer, hence a rational number, cant be a solution for x.
Hence, only irrational or integers can be a solution.
Thanks in advance.