I want to make a proof that $\sqrt[n]{m} \quad \forall \quad m,n \in \Bbb N$ is irrational if $m$ cannot be expressed as a perfect $n^\text{th}$ power of some other number $z \in \Bbb N$.
Begin by saying it's unconditionally rational and hence:
$\sqrt[n]{m}=\dfrac{p}{q} \iff p, q \in \Bbb N$
$m=\dfrac{p^n}{q^n} \tag 1$
$mq^n=p^n$
Now say that $p=am^b , q=cm^d \iff a, b, c, d \in \Bbb N$
In this case $b$ and $d$ can be $0$
What you get now is:
$m(cm^d)^n=(am^b)^n$
$c^n \cdot m^{nd+1}=a^n \cdot m^{nb} \tag 2$
Looking at the exponents of $m$, one is always divisible by $n$ and another is not. Hence it is a contradiction to say that in a general case they'd be equal.
In an attempt to resolve this, say that indeed $m=z^n$.
Then:
$c^n \cdot z^{n(nd+1)}=a^n \cdot z^{n^2b} \tag 3$
And it is now possible, since the exponents are now both divisible by $n$.
To end, say that $q=cm^d=1$. Then it would suffice to show that $\sqrt[n]{m}=z=p$
If $q=1$ then $c=1, d=0$
And:
$1^n \cdot z^n=a^n \cdot z^{n^2b}$
$z^n=a^n \cdot z^{n^2b}$
The only way this equation can be satisfied is if $n=0$ or $a=z, b=0$. For the first it means that $\sqrt[n]{m}$ has a few technical problems are aren't all that interesting. For the second, it implies:
$p=am^b=zm^0=z$
Q.E.D
Is this a legitimate argument or is there some lacking in the generality I was aiming for? Additional info and advice would be appreciated.