Given:
$( \{a+b \sqrt{n}\,|\,a,b\in \mathbb{Z} \},+,\times)$ and $( \{a+bi\sqrt{n}\,|\,a,b\in \mathbb{Z} \},+,\times)$ with $n\in\mathbb{N}^+$.
Show that in the given example, if we switch the ring of the integers for the field of rational numbers (e.g if we take $a,b\in\mathbb{Q}$) we will obtain fields.
I proceded from the definition of a field:
A field is a ring $(K,+,\times)$ that has an inverse multiplicative for every $n\in K\neq 0$ so that $x\times y=1$.
I thought that the demonstration consist in finding a $y$ such that $(a+b \sqrt{n})\times y=1$, solving for $y$, I'll obtain:
$$y=\frac{1}{a+b \sqrt{n}}$$
Which is a rational number for some $n$'s, is that correct? I'm starting to doubt it because I guess for some $n$'s (e.g. $n=2$), we'll have a real number.