As per my text, the congruence property is: If a > 0, b, and b' are integers such that $$b \equiv b' (mod\ a)$$ then $$(a,b) = (a,b')$$
I'm trying to use that to determine (7,150) and (28,-288).
Any tips/hints would be appreciated!
As per my text, the congruence property is: If a > 0, b, and b' are integers such that $$b \equiv b' (mod\ a)$$ then $$(a,b) = (a,b')$$
I'm trying to use that to determine (7,150) and (28,-288).
Any tips/hints would be appreciated!
For the first one, we have that
$$150\equiv 3\,(\text{ mod } 7)$$
and since both $3$ and $7$ are prime,
$$\gcd(7,150)=1$$
As a more general note, suppose you have two integers $a$ and $b$ and you want to determine $\gcd(a,b)$. Take the one with the smaller absolute value (WLOG, $a$) and take $b\,(\text{mod }a)$ Keep doing this until you reach sufficiently small numbers, in which case you can find the GCD.
Also, read this Wikipedia article on Euclid's algorithm.