# Math Help - gcd, linear combination problem

1. ## gcd, linear combination problem

For integers a and b, what is the relationship between gcd(a,b) and the set of integer linear combinations of a and b?

2. gcd(a,b) divides all linear combos of a and b.

3. Originally Posted by Janu42
For integers a and b, what is the relationship between gcd(a,b) and the set of integer linear combinations of a and b?
Suppose $a$ and $b$ are integers - not both zero, and let $L=\left\{ax+by|x,y\in\mathbb{Z}\right\}$ be the set of all linear combinations of $a$ and $b$.

The following relationship holds: Every linear combination of $a$ and $b$ (a member in $L$) is a multiple of $gcd(a,b)$; conversely, any multiple of $gcd(a,b)$ is a linear combination of $a$ and $b$.
In short, $L$ is precisely the set of all multiples of $gcd(a,b)$.

BTW, the greatest common divisor of $a$ and $b$ is the smallest postive linear combination of $a$ and $b$.