Let $p$ be a prime number. Define the subring $R = \{ \frac{a}{b} | \ a \in \mathbb{Z}, b \in \mathbb{Z} \setminus p\mathbb{Z} \}$ of $\mathbb{Q}$. Can someone explain to me why the set of rationals $\mathbb{Q}$ is the field of fractions of $R$ ? And also, why does $p$ have to be a prime number ? I haven't studied alot of ring theory yet so an explanation based on only the definition of field of fractions would be useful.
Thanks in advance !
The field of fractions of $R$ is the field $\{\frac{a}{b}\mid a,b\in R, b\neq 0\}$ under the relation of equivalence of fractions, i.e. $\frac{a}{b}=\frac{c}{d}$ iff $ad=bc$ (this products in $R$), with the usual operations of addition and multiplication of fractions.
Let $a=\frac{x}{y}$ and $b=\frac{z}{t}\in R$. We can see that the fraction $\frac{a}{b}$ is equivalent to the fraction $\frac{\frac{xt}{y}}{\frac{z}{1}}\in Frac(R)$, which is identified with the fraction $\frac{xt}{yz}\in \mathbb{Q}$. Indeed, we have that these two fractions are equivalent iff $a\frac{z}{1}=b\frac{xt}{y}$ in $R$, but with the usual operations we have $b\frac{xt}{y}=\frac{z}{t}\frac{xt}{y}$. As you might expect, $t$ cancels, but you can show this using the definition of equivalence of fractions, i.e. $\frac{zxt}{ty}$ is equivalent to $\frac{zx}{y}=a\frac{z}{1}$ in $R$.
This means that any fraction of elements of $R$ can be seen a a rational number after the identification. Therefore, $Frac(R)$ is a non-trival (find two fractions that are not equivalent to show this) subfield of the rationals, and you can use that the only such subfield is $\mathbb{Q}$ itself. Or artenatively, given a rational number $\frac{r}{s}$ you can find an element of $Frac(R)$ that can be identified with it, for instance $\frac{\frac{r}{1}}{\frac{s}{1}}$.