Let $K$ be a quadratic field $\mathbb{Q}(\sqrt{m})$ where $m$ is a square free integer, and let $p$ be a prime number which does not divide $2m$. Where can I find a reference to a proof of the following two facts/could someone supply a proof? I searched for a while and could not find a proof... and these seem like standard enough results such that a proof should exist somewhere...
- If $\left({m\over{p}}\right) = 1$, there are exactly two prime ideals $\mathfrak{p}$ of $O_K$ such that $\mathfrak{p} \supset pO_K$. For these $\mathfrak{p}$, $O_K/\mathfrak{p} = \mathbb{F}_p$.
- If $\left({m\over{p}}\right) = -1$, $pO_K$ is a prime ideal of $O_K$ and $O_K/pO_K$ is a finite field of order $p^2$.
As $K:=\Bbb{Q}(\sqrt{m})$ is a quadratic extension of $\Bbb{Q}$ there exists $\alpha\in K$ with $\mathcal{O}_K=\Bbb{Z}[\alpha]\cong\Bbb{Z}[X]/(f)$, where $f\in\Bbb{Q}[X]$ the (quadratic) minimal polynomial of $\alpha$. Depending on whether $m\equiv1\pmod4$ or $m\equiv2,3\pmod4$ we have $\Delta f=4m$ or $\Delta f=m$, respectively. If $p$ is a prime number that does not divide $2m$ then the discriminant of $f$ does not vanish modulo $p$, and $\Delta f$ is a square modulo $p$ if and only if $m$ is. Note that this does not depend on whether $m\equiv1\pmod4$ or $m\equiv2,3\pmod4$.
To see how this relates to the ring $\mathcal{O}_K$, note that we have isomorphisms $$\mathcal{O}_K/p\mathcal{O}_K=\Bbb{Z}[\alpha]/p\Bbb{Z}[\alpha]\cong\Bbb{Z}[X]/(f,p)\cong\Bbb{F}_p[X]/(f).$$ This shows in particular that the ideals of $\Bbb{F}_p[X]/(f)$ correspond bijectively to the ideals of $\mathcal{O}_K/p\mathcal{O}_K$, or equivalently, that ideals of $\Bbb{F}_p[X]$ containing $f$ correspond bijectively to ideals of $\mathcal{O}_K$ containing $p$.
Now if $\left(\tfrac{m}{p}\right)=1$ then $\Delta f$ is a square in $\Bbb{F}_p$, and so $f$ splits in $\Bbb{F}_p[X]$ as $f=(X-\beta_1)(X-\beta_2)$. Then $f$ is contained in the prime ideals $(X-\beta_1),(X-\beta_2)\subset\Bbb{F}_p[X]$, and no others, corresponding to two prime ideals $\mathfrak{p}_1,\mathfrak{p}_2\subset\mathcal{O}_K$ containing $p$. For each of these prime ideals we have $$\mathcal{O}_K/\mathfrak{p}_i\cong\Bbb{F}_p[X]/(X-\beta_i)\cong\Bbb{F}_p.$$
If $\left(\tfrac{m}{p}\right)=-1$ then $\Delta f$ is not a square in $\Bbb{F}_p$, and so $f$ is irreducible in $\Bbb{F}_p[X]$. Then $(f)\subset\Bbb{F}_p[X]$ is the only prime ideal containing $f$, corresponding to the only prime ideal $p\mathcal{O}_K\subset\mathcal{O}_K$ containing $p$, and $$\mathcal{O}_K/p\mathcal{O}_K\cong\Bbb{F}_p[X]/(f)\cong\Bbb{F}_{p^2}.$$