The question to begin with is: how many ideals of norm $100$ does the ring of integers of $K=\mathbb{Q}(\sqrt{-7})$ have? I know the following stuff for certain: $\Delta_K=-7$ and $\mathscr{O}_K=\mathbb{Z}[\frac{1+\sqrt{-7}}{2}]=\mathbb{Z}[x]/(x^2-x+2)$ (the ring of Kleinian integers).
What I want to know is what is the formula for the norm? The norm in $\mathbb{Z}[\sqrt{d}]$ is $N(a+b\sqrt{d})=a^2+db^2$, and for the Einsteinian integers we have something like $N(a+b\alpha)=a^2-ab+b^2$, where $\alpha=\frac{1+\sqrt{-3}}{2}$. I suppose that the Kleinian integers must have such a nice formula too. Secondly, that formula will only help me in finding the number of principal ideals in $\mathscr{O}_K$ of norm $100$, and Sage tells me that the class number is $1$, so those will be all ideals of norm $100$, right? Is there an alternative for this computation in stead of computing the class group of $K$?
Lastly, this way seems to require computing all ideals explicitly and then counting them. Isn't there something more smart to do to count ideals of a certain norm in a ring?
Added: The norm can be computed by taking the determinant of the matrix $M_x:\mathscr{O}_K\to\mathscr{O}_K,b\mapsto xb$ for $x\in\mathscr{O}_K$. However, I don't know what such a matrix must be in this case. For the norm in a simpler ring $\mathbb{Z}[\sqrt{d}]$, we just have the matrix $[[x,dy],[y,x]]$ with determinant $x^2−dy^2$. But honestly, I don't know where this matrix comes from...
More added: I already found what the norm should be. We take $\overline{\frac{1+\sqrt{d}}{2}}=\frac{1-\sqrt{d}}{2}$ and then the norm in $\mathscr{O}_{\mathbb{Q}(\sqrt{d})}=a^2-db^2$ when $d=2,3\;(4)$ and $\mathscr{O}_{\mathbb{Q}(\sqrt{d})}=a^2+ab+\frac{1-d}{4}b^2$ when $d=1\;(4)$; found on page 230 of Dummit. However, still don't know how to find that matrix.
More added: $(2)$ is definitely not prime in $\mathscr{O}_K$, since it is the product $\alpha\cdot\overline{\alpha}$ with $\alpha=\frac{1+\sqrt{-7}}{2}$. We have $2\mathscr{O}_K=(2,\alpha)(2,\alpha-1)$ and $5\mathscr{O}_K=(5,\alpha^2-\alpha+2)$ by Kummer-Dedekind. How to determine the ideals of norm $100$?