Let $p$ be prime and $R=\{\frac{a}{b}:a,b \in \Bbb Z,b \neq0\text{ and }p\nmid b\}$.
As an exercise, I have to prove that $R$ is a subring of $\Bbb Q$.
My idea:
With $a = 1$ and $b = 1$, $\frac{a}{b} = 1$ is an element of $R$.
Let $\frac{a}{b}$ and $\frac{c}{d}$ be elements of $R$. Then, $\frac{a}{b} + \frac{c}{d} = \frac{ad+bc}{bd}$ is an element of $R$.
Furthermore, $\frac{a}{b}\frac{c}{d} = \frac{ac}{bd}$ is an element of $R$ as $ac$, $bd$ $\in$ $\Bbb Z$, $bd \neq 0$ and $p \nmid bd$.
It follows that $R$ is a subring of $\Bbb Q$.
Is this proof correct?
As a next step in the exercise, I have to prove that all ideals of $R$ are of the form $Rp^n$ with $n \in \Bbb N_0$.
Unfortunately, I don't have an idea to prove that.
Could someone give me a hint please?