Consider $n, k\in\mathbb N$. Prove that $\gcd(n, n + k)\mid k$
Here is my proof. Is it correct?
A proposition in number theory states the following:
$$\forall a, b \in \mathbb{Z}, \ \gcd(n,m)\mid an+bm$$
A corollary (consequence) to this is that if $an+bm=1$ for some $a, b \in \mathbb{Z}$, then $\gcd(n,m)=1$.
Again in our problem $(n+k)-n=k$, therefore we can use this to see that $\gcd(n,n+k)=k$.
I would do it simpler. We know that $\gcd(n, n+k) | n$ and $\gcd(n, n+k)|(n+k)$. From that, it is pretty clear that $\frac{n+k}{\gcd(n, n+k)} = \frac{n}{\gcd(n, n+k)} + \frac{k}{\gcd(n, n+k)}$. The left side is an integer by definition. $\frac{n}{gcd(n, n+k)}$ is also an integer by definition. Therefore, $\frac{k}{\gcd(n, n+k)}$ is also an integer. Result follows.