What is the GCD of (a + b, a - b)?

  • Context: Undergrad 
  • Thread starter Thread starter cmurphy
  • Start date Start date
  • Tags Tags
    Gcd Properties
Click For Summary

Discussion Overview

The discussion revolves around computing the greatest common divisor (gcd) of the expressions (a + b) and (a - b), given that a and b are nonzero integers with gcd(a, b) = 1. Participants explore various approaches, examples, and theoretical insights related to this problem.

Discussion Character

  • Exploratory
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant expresses uncertainty about how to start the problem and seeks help in computing gcd(a + b, a - b).
  • Another participant notes that if a prime number divides two numbers, it also divides their sum.
  • Some participants acknowledge that they understand that a common divisor d divides both (a + b) and (a - b), but they struggle to find a relationship to compute the gcd.
  • Examples provided by participants show varying results for gcd(a + b, a - b) based on different values of a and b, leading to confusion about the relationship between the examples.
  • One participant suggests working backwards to find a solution.
  • Another participant questions whether there are cases where the gcd is something other than gcd(a, b) or 2gcd(a, b).
  • There is a discussion about the implications of the parity of (s + t) and (s - t) in relation to the gcd.
  • One participant emphasizes the importance of finding which primes divide both (a + b) and (a - b) to derive the gcd.
  • Another participant expresses frustration at not being able to piece together the various hints and information provided.
  • A later reply clarifies that if a prime p divides both (a + b) and (a - b), then it must divide their sum and difference, leading to conclusions about the nature of p.
  • One participant reassures that the problem is not for submission but for personal understanding of the material.
  • Another participant suggests a conceptual shift in understanding the terms "sum of two numbers" in the context of the problem.

Areas of Agreement / Disagreement

Participants express various viewpoints and approaches, with no clear consensus reached on the method to compute gcd(a + b, a - b). Disagreement exists regarding the implications of different examples and the theoretical underpinnings of the problem.

Contextual Notes

Participants mention specific cases and examples, but there are unresolved mathematical steps and assumptions regarding the properties of gcd and prime divisors that are not fully clarified.

cmurphy
Messages
29
Reaction score
0
I am trying to work through the following problem, and don't know where to start:

I know that a, b are nonzero integers with gcd(a, b) = 1.

I need to compute the gcd (a + b, a - b).

Any help?
 
Physics news on Phys.org
note that if a prime numbers divides two other numbers then it also divides their sum.
 
Well, I understand that d | (a + b) and that d | (a - b), but I am not sure how to use this information to figure out the gcd of (a + b, a - b).

I have tried it with just number examples, and I get different answers depending on the numbers that I choose, and I cannot figure out a relationship between the different examples.
 
You get several different answers ? Show your examples.

One more thing : try working backwards...
 
Last edited:
If I choose a = 3 and b = 11, then (a, b) = 1.
Then (a+b, a-b) = (8, 14), so gcd = 2.

But if I choose a = 2 and b = 7, then (a, b) = 1.
Then (a+b, a-b) = (5, 9), so gcd = 1.
 
Have you found any cases where the answer is something other than gcd(a,b) or 2gcd(a,b)?
 
Decode this :p
d = s(a+b)+t(a-b)
d=(s+t)a+(s-t)b
(s+t) & (s-t) both odd or even ... all OK
but one of s+t or s-t odd/even ... not all OK
so the d becomes?

-- AI
 
Ok, so if (s+t) and (s-t) are both even, then the gcd of them is 2.

If one is even and one is odd, then the gcd is 1.

This is a stupid question, I'm sure, but how do we know that s+t, s-t (if both even) cannot have a gcd > 2?
 
the gcd of x and y divides x+y and x-y.
actually more is true: gcd(x,y)=gcd(x,y+x)=gcd(y,x+y)=gcd(x,y-x)=gcd(y,y-x)

so let x=a+b, y=a-b and see that the gcd you're trying to calculate divides...?
 
Last edited:
  • #10
you are using my hint backwards. the point is find what primes divides both a+b and a-b. so assume that p divides both of them, then it divides their sum...
 
  • #11
something i missed earlier:

if one of s-t and s+t is even the other one must also be even, since their difference is even, so either they are both odd or both even, and not the cases you gave.
 
  • #12
mathwonk said:
you are using my hint backwards. the point is find what primes divides both a+b and a-b. so assume that p divides both of them, then it divides their sum...

That's what I meant.

I would recommend you simply do this...and in a couple of steps you have the required result.

"Let p divide (a+b) and (a-b), then..."
 
  • #13
You would think that after all of these hints I would be closer to the proof. However, I now have several different pieces of information that I am unable to piece together.

This is getting frustrating, because I know it's really easy!
 
  • #14
I hope this isn't homework...

This will not be rigorous..I leave that to you.

Let p be a prime that divides (a+b) and (a-b).

Then p must divide their sum and difference. So p|2a and p|2b

And we know that there is no p that divides a and b, so either p must be 2 or the starting assumption was false.
 
  • #15
No, not homework to turn in, just homework to know how to do so that I can work with the material.
 
  • #16
I am guessing that you are stuck thinking when you hear the words "sum of two numbers" that the sum must look like a+b. I.e. it did not occur to you that a symbol like a+b could be thought of as one number, so that "sum of two numbers" could be applied to the two numbers x = a+b and y = a-b.

If so, then just realizing this, can help open your eyes to more possibilities in future.
 

Similar threads

  • · Replies 23 ·
Replies
23
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K