Prove that the set $A$, defined as follows, is dense in $\mathbb{R}$.
$$A = \left\{ \frac{m}{p^n}~|~m \in \mathbb{Z}, n \in \mathbb{N}, p \in \mathbb{N} ~~\text{with} ~~p>1 \right\}. $$
Remark: $A$ is dense in $\mathbb{R}$ if any open interval $(a, b)$ has an element of $A$.
Observation: In the textbook where this problem is from, the convention is that $0 \notin \mathbb{N}$.
Attempt:
Let $b - a = \varepsilon$, with $\varepsilon > 0$. We have to demonstrate the existence of some $\frac{m}{p^n}$ such that $\frac{m}{p^n} < \varepsilon ~~\forall~~ \varepsilon$. So using this inequality, we have
$$ \frac{m}{\varepsilon} < p^n \tag{1} $$
$$ \left( \frac{m}{\varepsilon} \right)^{1/n} < p \tag {2} $$
Now take any $\varepsilon$ arbitrarily small. By setting $p > \left( \frac{m}{\varepsilon} \right)^{1/n}$, we have that $\frac{m}{p^n} < \varepsilon $, and therefore $\frac{m}{p^n} \in (a, b). $
Thoughts:
I feel that what I'm doing might be wrong because I just solved for one variable, $p$ in this case, then back-substituted, but $m$ and $n$ are also variables.