# Math Help - Prime Numbers

1. ## Prime Numbers

Here is my problem:

Let a,b be nonzero integers. Prove that (a,b) = 1 if and only if (a+b, ab) = 1.

Any suggestion on where to start?

2. You could try playing around with Bezout's identity.

(From right to left) Suppose that $\gcd(a+b,ab)=1$. There exist integers $x,y$ such that $(a+b)x+(ab)y=1$. Distributing the terms, $ax+bx+aby=1$, and $a(x+by)+bx=1$. This shows that $\gcd(a,b)$ must divide 1. Therefore, $\gcd(a,b)=1$.

You can try a similar argument for the other direction. (You may need to insert some terms into the equation by adding and subtracting the same thing.)

3. Alternatively:

$
\gcd(a+b,ab) = 1 \Leftrightarrow \gcd(a+b,a) = \gcd(a+b,b) = 1 \Leftrightarrow \gcd(a,b)=1
$