Let $S = \{ax + by: x,y \in \mathbb{Z}\}$ and let $e > 0$ be the smallest element in $S$. Prove that $e \mid a$, and hence prove that $e = \gcd(a,b)$
I'm afraid I can't provide much of my initial working here because I'm at a loss of how to start.
I suppose that to show $e\mid a$ I would have to show that $eg = a$ for some $g \in \mathbb{Z}$. But I have no idea how I would do this.
When I first saw this problem, I was pretty surprised at how the proof went, so I'll just get you started on it.
By the Division Theorem, we have: $$a=qe+r \text{ for } 0 \leq r < e$$ Now, we need to show $r=0$. To do this, we can use the fact that $e=ax+by$ for some $x,y \in \Bbb{Z}$ and that $a=1a+0b$, so: $$1a+0b=q(ax+by)+r \implies a(1-qx)-bqy=r$$ Now we can combine the fact that $r=au+bv$ for $u,v \in \Bbb{Z}$ and that $0 \leq r < e$ to prove $r=0$.