Let $D$ be a euclidean domain and $a, b \in D$. Show that $M = \{xa + yb \ \mid \ x, y \in D\} $ is an ideal of $D$. Find $d \in D$ such that $M = \langle d \rangle$ and prove your claim.
My effort: we can extend Bezout's identity to euclidean domains (I see nothing in the proof that can't be extended here) to find $\alpha, \beta \in D$ such that $d \doteq \text{gcd } (a,b) = \alpha \cdot a + \beta \cdot b$. Then, given any $x \in D$, we have $x d = x\cdot (\alpha \cdot a + \beta \cdot b) = (x\alpha)a + (x \beta)b \in M$, therefore $\langle d \rangle \subset M$. Conversely, since $a = d m $ and $b = d n$ for some $m, n \in D$, given $xa + yb \in M$, we have $xa + yb = d(xm + yn) \in \langle d \rangle$, whence $M \subset \langle d \rangle$, and then $M = \langle d \rangle$.
Is this alright? I'm always wary of questions that are solved too easily (and I'm usually right for that, since my solutions are usually wrong in those cases), so I'd appreciate a second opinion/corrections.