Why Does gcd(a+b, a-b) Only Equal 1 or 2?

Click For Summary
SUMMARY

The discussion centers on proving that gcd(a+b, a-b) can only equal 1 or 2. Participants emphasize the importance of the principle of linearity in divisibility and suggest that assuming a and b are coprime integers is crucial for the proof. By manipulating the linear combination of a+b and a-b, one can derive that the gcd must divide 2a and 2b, leading to the conclusion that the only possible values for gcd(a+b, a-b) are indeed 1 or 2.

PREREQUISITES
  • Understanding of gcd (greatest common divisor) and its properties
  • Familiarity with linear combinations in number theory
  • Knowledge of coprime integers and their significance
  • Basic algebraic manipulation skills
NEXT STEPS
  • Explore the properties of coprime integers in number theory
  • Learn about linear combinations and their applications in divisibility
  • Study the Euclidean algorithm for calculating gcd
  • Investigate the implications of gcd in modular arithmetic
USEFUL FOR

Mathematics students, educators, and anyone interested in number theory, particularly those studying properties of divisibility and gcd.

PsychonautQQ
Messages
781
Reaction score
10

Homework Statement


Show that gcd(a+b,a-b) is either 1 or 2. (hint, show that d|2a and d|2b)

Homework Equations


d = x(a+b)+y(a-b)

The Attempt at a Solution


so by the definition of divisibility:
a+b = dr
a-b = ds

adding and subtracting these equalities from each other we can arrive at where the hint wanted us to conclude:
(r+s) = 2a/d
(r-s) = 2b/d

Trying to figure out what to do from here, having a hard time using the hint to restrict d to 1 or 2.
 
Physics news on Phys.org
PsychonautQQ said:

Homework Statement


Show that gcd(a+b,a-b) is either 1 or 2. (hint, show that d|2a and d|2b)

Homework Equations


d = x(a+b)+y(a-b)

The Attempt at a Solution


so by the definition of divisibility:
a+b = dr
a-b = ds

adding and subtracting these equalities from each other we can arrive at where the hint wanted us to conclude:
(r+s) = 2a/d
(r-s) = 2b/d

Trying to figure out what to do from here, having a hard time using the hint to restrict d to 1 or 2.

You must have some condition on a and b. Like, are they relatively prime?
 
  • Like
Likes   Reactions: PsychonautQQ
Hey there,

I think a really important concept that you might be forgetting is the principle of linearity with divisibility. Since your gcd divides both a+b and a-b, it is then also true that your gcd will divide ANY linear combination of these integers (assuming integer weights, of course).

Namely, instead of being completely general with divisibility, realize that you can manipulate the variables x and y in the expression d | (a+b)x + (a-b)y to get a form that is equally valid. I think that your book wants you to assume that a and b are coprime integers, as well.

So, why not try playing around and actually picking numerical values for x and y that can help eliminate either a or b?
 
  • Like
Likes   Reactions: PsychonautQQ

Similar threads

Replies
1
Views
1K
Replies
20
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
3
Views
18K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
0
Views
1K
Replies
1
Views
3K