Prove that $∀a, b, c ∈ \mathbb Z$ with $b \neq 0$, if $b|c$, then $\gcd(a, b) = \gcd(a + c, b)$.
I've proved it in the following way:
$\gcd(c,b) = b.$
Let $\gcd(a,b) = x$, $x|a$ and $x|b$
Since $b$ is the $\gcd$ of $c$,
if $x|b$ then $x|c$
Thus, $\gcd(a+c, b) = x = \gcd(a, b)$.
Was wondering if this is a solid proof. If not, is there anyway I can improve on this? Thanks for helping out
Let $d=\gcd(a,b)$. Then since $b | c$, we have $d|c$ which implies $d| a+c$. Thus, $k=\gcd(a+c,b)\ge d$.
Now, $k | b$ and $k|a+c$. But $k|b \Rightarrow k|c \Rightarrow k|a$ (Because $k$ also divides $a+c$). Thus, we have $k$ divides both $a$ and $b \Rightarrow k\le d$
In conclusion, $k\le d $ and $k \ge d$ implies $k=d$, which was what was to be proved!