Greatest common divisor · Exercise-GREATEST-COMMON-DIVISOR-010
Step-by-step solved exercise: Recurrences and arithmetic
If \(\displaystyle \gcd(a,b)=1\), what values can \(\displaystyle \gcd(a+b,\,a-b)\) take for \(\displaystyle a\ne b\)?
Greatest common divisor · Exercise-GREATEST-COMMON-DIVISOR-010
If \(\displaystyle \gcd(a,b)=1\), what values can \(\displaystyle \gcd(a+b,\,a-b)\) take for \(\displaystyle a\ne b\)?
Let \(\displaystyle d\) be a common divisor. Adding and subtracting, \(\displaystyle d\) divides \(\displaystyle 2a\) and \(\displaystyle 2b\).
Therefore, \(\displaystyle d\) divides \(\displaystyle \gcd(2a,2b)=2\gcd(a,b)=2\).
Thus, the greatest common divisor can only be \(\displaystyle 1\) or \(\displaystyle 2\).
Both values occur: with \(\displaystyle a=3\), \(\displaystyle b=1\) it gives \(\displaystyle 2\), and with \(\displaystyle a=2\), \(\displaystyle b=1\) it gives \(\displaystyle 1\). Therefore, the answer is only \(\displaystyle 1\) or \(\displaystyle 2\).
Only 1 or 2