TITLE: Methods to show an ideal in the ring of integers $\mathcal{O}_K$ is a proper ideal
QUESTION [5 upvotes]: I was wondering if there were general "tactics" to show if an ideal in the ring of integers $\mathcal{O}_K$, where $K/\mathbb{Q}$ is a number field of degree $n$.
For example, consider $\mathcal{O}_K = \mathbb{Z}[\sqrt{-5}]$ and $P = (2,1+\sqrt{5})$. One method to show this is a proper idea is to argue that if $a + b\sqrt{-5} \in P,$ then $a+b\sqrt{-5} = 2x + y(1+\sqrt{-5})$ for integers $x,y$ and comparing coefficients, we get $a - b \equiv 0 \bmod 2,$ so $P$ cannot be the whole ring. However, this method seems quite laborious, and this may just be a special case when modding out by a prime actually works.
For me, the following isomorphism seems quite intuitive: as $\mathbb{Z}[\sqrt{-5}] \cong \mathbb{Z}[x]/(x^2+5),$ we should have that 
\begin{align*}
\mathbb{Z}[\sqrt{-5}]/(2,1+\sqrt{5}) &\cong \mathbb{Z}[x]/(x^2+5,2,1+x) \\
&\cong \mathbb{Z}/(6,2) \text{ by mapping } x \mapsto -1 \\
&\cong \mathbb{Z}/2\mathbb{Z}
\end{align*}
so the ideal $P$ is indeed proper. But I can't seem to set up an explicit isomorphism at the moment, so I was wondering if this works generally?
Furthermore, are there any useful techniques one might use to show an ideal is indeed proper?

REPLY [3 votes]: To know is an ideal $\mathfrak{a}$ is proper or not isn't easier if we just compute the size of $\mathcal{O}_K/ \mathfrak{a}$ thinking of $\mathcal{O}_K$ as a lattice?.
As long as  you know a $\mathbb{Z}$-basis for $\mathcal{O}_K$ say $\{ 
\gamma_1, \ldots,  \gamma_n \}$ and you're given $\mathfrak{a}$ is terms of $\mathcal{O}_K$-generators say $  (\beta_1,\ldots,\beta_m)$ you can esaily find a $\mathbb{Z}$-basis $\{ 
\alpha_1, \ldots,  \alpha_n \}$ for $\mathfrak{a}$  ( reducing the $\mathbb{Z}$-generators of $\mathfrak{a}$ $ \{\beta_i \gamma_j \}$ to a $\mathbb{Z}$-basis, for example by hermite form). Then you simply write $\alpha_i=\sum a_{ij} \cdot \gamma_j$  and  $ | \mathcal{O}_K/ \mathfrak{a} |=|\text{det}(a_{ij})|$ would be $1$ iff $\mathcal{O}_K=\mathfrak{a}$.
In your example $\{1, \sqrt{-5} \}$ is a $\mathbb{Z}$-basis for $\mathcal{O}_K$,  $\{2,2\sqrt{-5},1+\sqrt{-5}, (1+\sqrt{-5})\sqrt{-5} \}$ reduces to the $\mathbb{Z}$-basis $  \{1+\sqrt{-5},2 \sqrt{-5}\}$ for $P$, because the hermite form of
$$
\begin{bmatrix}
    2       & 0  \\
    0       & 2 \\
    1       & 1\\
   -5       & 1 
\end{bmatrix}
$$
is the matrix
$$
\begin{bmatrix}
    1      & 1  \\
    0       & 2 \\
    0       & 0\\
   0      & 0 
\end{bmatrix}
$$
and so $ | \mathcal{O}_K/ P |=\text{det}\begin{bmatrix}
    1      & 1  \\
    0       & 2  
\end{bmatrix}$$=2\neq 1$.