We have the following statement:
Prove that if $a=qb+r$ with $0\leq r<b$ then $\gcd(a,b)=\gcd(b,r)$
Notation: $D_{a,b}$ stands for $\{x\in\Bbb{Z}\mid x\mid a,\;x\mid b\}$. So we need to prove $D_{a,b}=D_{b,r}$.
We prove $\subseteq$: for all $x\in D_{a,b}$, $x\mid a$ and $x\mid b$, then $x\mid qb+r$ and $x\mid b$ and $x\mid b$. So $x\mid qb+r$ and $x\mid (-q)b$ and $x\mid b$, then $x\mid(qb+r-qb)$ and $x\mid b$, hence $x\mid r$ and $x\mid b$, thus $x\in D_{b,r}$.
The same for the converse.
But then it says:
We can show not only that the greatest common divisors are equal but that the set of all common divisors of $a$ and $b$ is the same as the set of all common divisors of $b$ and $r$, so the greatest of each set is the same.
It is asking to prove that $\max(D_{a,b})=\max(D_{b,r})$? How can we prove it? Why is it important?