3

Is it true that $$ \gcd(a, b) = \gcd(a + b, \operatorname{lcm}(a, b)) $$ for all integers $a$ and $b$? How to prove it?

For example, take $a = 48$ and $b = 60$. Now $\gcd(a, b) = 12$, $\operatorname{lcm}(a, b) = 240$, and $a + b = 108$. Now, the $\gcd(240, 108) = 12$. Does the relation hold in general for any two integers?

L. F.
  • 1,940

1 Answers1

2

$$ \DeclareMathOperator{\lcm}{lcm} \newcommand{\ZZ}{\mathbb{Z}} $$

Given $a, b \in \ZZ^*$, we are trying to show that $\gcd(a, b) = \gcd(a + b, \lcm(a, b))$. (I will ignore the case where $a = 0$ or $b = 0$, in which case whether the statement holds depends on how you define $\gcd(0, n)$.)

Denote $g = \gcd(a, b) \in \ZZ^+$ and let $a = gx$ and $b = gy$ with $x, y \in \ZZ^*$ and $\gcd(x, y) = 1$. Now $\lcm(a, b) = gxy$, so

$$ \gcd(a + b, \lcm(a, b)) = \gcd(g(x + y), gxy) = g \cdot \gcd(x + y, xy). $$

Assume for the sake of contradiction that $d$ is some prime factor of $\gcd(x + y, xy)$. Then, $d$ divides $xy$. Since $\gcd(x, y) = 1$, $d$ divides exactly one of $x$ and $y$. But $d$ also divides $x + y$, so $d$ divides neither or both of $x$ and $y$, reaching a contradiction. Therefore, $\gcd(x + y, xy) = 1$, and $$ \gcd(a + b, \lcm(a, b)) = g. $$

L. F.
  • 1,940