2

I know there's some kind of theorem I'm missing here. How can one prove the above?

Cheers!

JMP
  • 21,771
Gilzy
  • 21

4 Answers4

2

Let $\gcd(a,18)=d$. Since $d|a$ and $d|18$, we have $d|a+18$. Thus the $\gcd(a+18,d)=d$ since $d$ divides both terms.

Rocket Man
  • 2,433
1

In short, they are equal because LHS divides RHS and RHS divides LHS. This is a very common argument when proving equalities on gcd.

0

$\gcd(a,18) | a$ and $\gcd(18) | 18$, so $\gcd(a,18) | (a+18)$. Trivially $\gcd(a,18) | \gcd(a,18)$, so $\gcd(a,18) | \gcd(a+18, \gcd(a,18))$ as we have shown the left hand divides both of the numbers, and the $\gcd$ on the right is the largest (in the divisibility sense) of the common divisors.

$\gcd(a+18,\gcd(a,18)) | \gcd(a,18) $ and $\gcd(a,18) | a$ and $\gcd(a,18) | 18$, so transitivity gives $\gcd(a+18,\gcd(a,18)) | a$ and $\gcd(a+18,\gcd(a,18)) | 18$. As it divides both we get by maximality of the $\gcd$ that $\gcd(a+18,\gcd(a,18)) | \gcd(a,18)$. So these numbers divide each other so they differ up to sign, and and $\gcd$'s are positive, they are equal.

Henno Brandsma
  • 242,131
0

Let $c$ be any common divisor of $a$ and $b$; then $c$ is a divisor of both $a+b$ and of $\gcd(a,b)$.

Conversely, if $c$ is a common divisor of $a+b$ and of $\gcd(a,b)$, then it is a divisor of $b$, say $b=cd$; then $a+b=ce$ says $a=ce-cd=c(e-d)$ and so $c$ is also a divisor of $a$.

So the set of divisors of $a$ and $b$ is the same as the set of common divisors of $a+b$ and $\gcd(a,b)$.

Now just set $b=18$.

egreg
  • 238,574