I'm having troubles with the following problem:
Let $p$ be a prime number in $\mathbb{Z}$, and $\alpha\in\mathbb{Z}\left[\sqrt{p}\right]$ which is not a unit. Prove that $\alpha$ have a factorization in irreducible elements of $\mathbb{Z}\left[\sqrt{p}\right]$.
At the beginning I though that that ring was a Euclidean Domain, but that fails for $\mathbb{Z}\left[\sqrt{5}\right]$. So, I don't know where to start now.
Thanks in advance.
Hint: Consider the norm $N(a+b\sqrt{p})=|a^2-b^2p|$. Prove that if $\delta$ divides $\alpha$, then $N(\delta) \le N(\alpha)$. Then use induction on $N(\alpha)$.
Or, more sophisticatedly, argue that $\mathbb{Z}\left[\sqrt{p}\right]$ is a Noetherian ring and so all ascending chains of principal ideals eventually stop.