I would appreciate hints to this. I've done part (a) but am unconfident.
Wondering how I could approach part (b)
Question's comment -- The aim of this question is to use the Division Algorithm and the definition of greatest common divisor (gcd) to show that $d_0 = \gcd(a,b)$.
Question:
Let $a,b$ be integers, not both zero, let $S$ be the set of integers defined by
$$S = \{ ax + by | x,y \in \mathbb{Z}\}$$
and let $d_0$ be the smallest positive integer in the set $S$.
Prove:
a. If $s\in S$, then $d_0$ is a divisor of $s$.
b. $d_0$ is a divisor of both $a$ and $b$.
c. If $d$ is a divisor of both $a$ and $b$, then $d$ is a divisor of $d_0$.
d. $d_0 =\gcd(a,b),$ and hence there exists integers $x,y$ such that $ax + by = \gcd(a,b)$.
Attempt:
Note I don't expect full (or any hints to the problem(s) as there are quite a bit, but I would just appreciate hints.
a. Let $s \in S$. Then $s = d_0 q + r$ for some $q,r \in \mathbb{Z}$.
By definition, $d_0 = ax_0 + by_0$ for some $x_0,y_0 \in \mathbb{Z}$.
$s = ax_s + by_s$ for some $x_s,y_s \in \mathbb{Z}$.
Hence, $$ax_s + by_s = q(ax_0 + by_0) + r\\
a(x_s - qx_0) + b(y_s - qy_0) = r.$$
Define $x_r:= x_s - qx_0 \in \mathbb{Z}$ and $y_r:= y_s - qy_0 \in \mathbb{Z}$.
Then this shows that $r \in S$ which implies $d_0 | s$.