If "a" is a integer, then "a" can be expressed in terms of primes say
$a = p^xq^y...r^z$
Now $p^{(m/n)}$ is not integer if n does not divide m(if n divides m, then obviously it is integer). Suppose it is integer then
$p^{(m/n)} = Q^Y..R^Z$, Where Q,..,Z are primes and Y,..Zs are integers. Then
$p^m = Q^{nY}..R^{nZ}$, now $p^m$ can be divided only by p or some power(less than m) of p . Now
$\dfrac{p^m}{Q^{nY}} = S^{nW}..R^{nZ}$, as $(S^{nW}..R^{nZ})$ is integer so $\dfrac{p^m}{Q^{nY}}$ is integer that indicates $Q=p$, and $\dfrac{p^m}{Q^{nY}}$ is some power of p. Proceeding in the same way we see all Q,..,Z are p only. That indicates n divides m.
Now $a = p^xq^y...r^z$, $a^{m/n} = p^{mx/n}q^{my/n}...r^{mz/n} = b$, for some integer b.
So $p^{mx}q^{my}...r^{mz} = b^n$, as left side contains primes p,q,..,r only right side should also contain the same primes. That indicates b should also have p,q,..,r only.
Writing b as $b = p^{i}q^{j}...r^{k}$, we see that $p^{mx}q^{my}...r^{mz} = p^{ni}q^{nj}...r^{nk}$. Now as both side factored into same primes we can equate the powers of the primes. That leads to
$\dfrac{mx}{n}=i ,\dfrac{my}{n}=j,..,\dfrac{mz}{n}=k$,
that indicates if n does not divide m(and m,n in their lowest terms) then n must divide x,n must divide y,..,n must divide z that indicates $p^\dfrac{x}{n}q^\dfrac{y}{n}...r^\dfrac{z}{n} = a^\dfrac{1}{n}$ is integer.