I'm having some trouble proving the following proposition:
Let $a,c \in \mathbb Z\setminus\{0\} $ and $k \in \mathbb Z$, then:$$\gcd(a,ak+c)=\gcd(a,c)$$
If $D_a$ and $D_c$ are the set of all numbers that devide $a$ and $c$ respectively I was able to prove that, if $\lambda := \gcd(a,ak+c)$ then $\lambda \in D_a \cap D_c$, but now, I can't arrive at the conclustion that $\max(D_a \cap D_c) = \lambda$. How can I conclude this proof?