Consider $\mathbb{Z}[\sqrt{10}] = \{x + \sqrt{10}y; x,y \in \mathbb{Z} \}$.
We want to show that there is no uniqueness of factorisation.
I think that it's better to consider $9 = 3 \cdot 3 = (\sqrt{10}-1)(\sqrt{10}+1)$. But now we need to show that $3$ and $\sqrt{10}-1$ are irreducibles in this ring.
There is a problem with this. My attempt : let's say $3 = (a+\sqrt{10}b)(c+\sqrt{10}d) = \sqrt{10}(ad + bc) + (ac +10bd)$, now we have that
$ad + bc = 0$ , hence $3 = (a-\sqrt{10}b)(c-\sqrt{10}d)$ is appropriate too. So we have that $9 = (a^2 - 10 b^2)(c^2 - 10d^3)$ which give us 4 possibilities : $9 = 1 \cdot 9 = (-1)\cdot(-9) = 3 \cdot 3 = (-3) \cdot (-3)$. It's easy to see that the las two cases are invalid.
But what about first scenario. There will be some solutions for $a^2 - 10b^2 = 1$ and $c^2 - 10d^2 = 9$, but how can I show that these solutions doesn't hold equation $ad + bc = 0$? Any hints?