Show that in the ring $\mathbb{Z}[i]$ = ($a+bi|a, b \in \mathbb{Z}$ of Gaussian integers, the ideal generated by $1+2i$ is the same as the set $(a+bi|a, b \in \mathbb{Z}, 2a=b \mod 5)$.
I'm pretty confused by this question. How would you show the ideal generated by $1+2i$ in the first ring, and then be able to equate it to the second set? Would appreciate any detailed responses. Many thanks.
Denote by $I$ the ideal generated by $1 +2 i$ and by $J$ the set $\left\{a +b i : a, b \in \mathbb{Z}; 2 a \equiv b \pmod 5 \right\}$. We want to prove that $I = J$.
Indeed, it is clearly a subgroup of $\mathbb{Z}[i]$ and $$\forall a +b i \in J, \forall c +d i \in \mathbb{Z}[i], (a +b i) (c +d i) = (a c -b d) +(a d +b c) i \in J$$ since $2 (a c -b d) \equiv a d +b c \pmod 5$ because $2 a \equiv b \pmod 5$.
Therefore, since $1 +2 i \in J$, $I \subset J$.
Thus, $J \subset I$.