For a non-square integer $d$ such that $d \equiv 1 \mod 4,$ we define the set $$\mathcal{O}_d := \left\{\frac{a + b\sqrt{d}}{2}:a,b \in \mathbb{Z}, a \equiv b \mod 2 \right\}.$$
Prove that $\mathcal{O}_3$ and $\mathcal{O}_7$ are euclidean domains (draw their lattices in the complex plane).
In my class we drew a general lattice for $\mathbb{Z}[i]$:

and then proved $\mathbb{Z}[i]$ is a euclidean domain: Consider $\dfrac{b}{a} \in \mathbb{C}.$ Let $q \in \mathbb{Z}[i]$ be the closest Gaussian integer to $\dfrac{b}{a}.$ Then the norm function $N \left(\dfrac{b} {a}-q \right) \leqslant \left(\dfrac{1}{\sqrt{2}}\right)^2 = \dfrac{1}{2}.$ Set $r := b -aq \in \mathbb{Z}[i].$ Then $N(r) = N(b - aq) = N \left(a \left(\dfrac{b}{a} -q \right) \right) = N(a)N \left(\dfrac{b}{a} - q \right) \leqslant \dfrac{1}{2} N(a) < N(a).$
First off, how do we draw these lattices? I am not entirely sure how to draw $\mathbb{Z}[\sqrt{-2}]$ or $\mathbb{Z}[\sqrt{3}]$ since I don't fully understand how the values $\dfrac{1}{\sqrt{2}}$ and $1$ are chosen in the example above. Would the same methods work for drawing $\mathcal{O}_3$ and $\mathcal{O}_7$ in the complex plane? I'm not really sure where to start proving that they are both euclidean domains.
Using the norm $N((a+b\sqrt{3})/2):= \frac{1}{4}|a^2-3b^2|$ I drew the fundamental domain $N(z) < 1$ and the corresponding hexagonal lattice. These look like Eisenstein integers $\mathbb{Z}[e^{2\pi i /3}]$ except the discriminant is positive instead of negative.
Your goal is to show any of the blue dots can be translated onto the green area using lattice vectors. The fact is you get infinitely many as you go up the tentacles of the hyperbola, but they are all related by a factor of units in this ring.
To the compute the units in this ring note that $\sqrt{3} = [1, \overline{1,2}] $ is the continued fraction expansion and from you compute the units by solving Pell's equation.
The corresponding situation for $\sqrt{7}$ is a bit more tricky. The diagram suggests you get a Euclidean norm as before - $N((a+b\sqrt{7})/2):= \frac{1}{4}|a^2-7b^2|$ - by a narrower margin.
This trick works for discriminants up to around $13$ and there are norm Euclidean rings up to $d = 51$ and $73$. The proof is not obvious.