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\)?

Step by step with comments, a check and common mistakes.

Step-by-step solution

  1. Let \(\displaystyle d\) be a common divisor. Adding and subtracting, \(\displaystyle d\) divides \(\displaystyle 2a\) and \(\displaystyle 2b\).

    \[\displaystyle d\mid (a+b)+(a-b)=2a,\quad d\mid (a+b)-(a-b)=2b\]
  2. Therefore, \(\displaystyle d\) divides \(\displaystyle \gcd(2a,2b)=2\gcd(a,b)=2\).

    \[\displaystyle d\mid 2\gcd(a,b)=2\]
  3. Thus, the greatest common divisor can only be \(\displaystyle 1\) or \(\displaystyle 2\).

    \[\displaystyle \gcd(a+b,\,a-b)\in\{1,2\}\]
  4. 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\).

    \[\displaystyle \gcd(4,2)=2,\quad \gcd(3,1)=1\]

Answer

Only 1 or 2

🎯 Build my path to this exercise