Proving the Relationship between GCD and Linear Combinations

Click For Summary
The discussion centers on understanding why the smallest positive linear combination of two numbers is their greatest common divisor (GCD). It highlights the role of the Euclidean algorithm in determining the GCD and demonstrates how to express it as a linear combination of the two numbers. The conversation also explores the implications of having coefficients s and t such that as + bt = 1, questioning how this relates to the GCD being one. It concludes that if the GCD divides both numbers, it must also divide any linear combination, reinforcing the relationship between linear combinations and the GCD. The discussion emphasizes the need to prove that the smallest positive linear combination must indeed be the GCD.
ZioX
Messages
370
Reaction score
0
I remember this from awhile back but can't seem to find any justification.

Why is the smallest positive linear combination of two numbers necessarily the GCD of the two numbers?
 
Physics news on Phys.org
You can use the Euclidean algorithm to find the gcd, then work backwards to write this gcd as a linear combination. Have you seen the Euclidean algorithm?
 
Yes, I am well aware of it. Perhaps not well enough to immediately see how that applies here.

But knowing that you have two numbers, a and b, and you know there exists s and t such that as+bt=1 how do you know that have gcd of one? Knowing that they have a gcd of one guarantees there exists an s and a t, but what if we're given s and t?

Again, my original question, and more generally, why is the smallest positive linear combination of two numbers necessarily the greatest common divisor?
 
The Euclidean algorithm repeatedly uses the division algorithm until the gcd pops out. Example, to find the gcd of 12 and 93:

93=12*7+9
12=9*1+3
9=3*3+0

This tells you that gcd(93,12)=3. We can work backwards to write 3 as a linear combination of 93 and 12:

3=12-9*1

from the second line. The first line says 9=93-12*7, sub this in for 9:

3=12-(93-12*7)*1=12*8-93*1

and we have 3 as a linear combination of 12 and 93.

This works in general, and you can prove this way that given a,b you can always find s and t so that a*s+b*t=gcd(a,b).

Proving that any other linear combination (that is positive) will be larger will follow from properties of the gcd. It divides both a and b, so what about a linear combination? Maybe look at the gcd=1 case first, if as+bt=1, what if d divides both a and b?
 
I'm still having problems and very confused. I don't want to go in that direction with the euclidean algorithm.

Essentially what my problem boils down to is, we know that as+bt=1. Why is gcd(a,b)=1?
 
ZioX said:
Essentially what my problem boils down to is, we know that as+bt=1. Why is gcd(a,b)=1?

In this case you know that gcd(a,b) divides a, and it divides b, so it divides any linear combination of a and b, so it must be 1.

This doesn't prove that if gcd(a,b)=1 then you can actually write 1 as a linear combination of a and b though. That's what the euclidean algortihm will let you do. But you can go another way if you like, assume you have the smallest positive linear combination as+bt=r. If r doesn't divide a and b, show you can find a smaller linear combination, which is a contradiction.
 
Question: A clock's minute hand has length 4 and its hour hand has length 3. What is the distance between the tips at the moment when it is increasing most rapidly?(Putnam Exam Question) Answer: Making assumption that both the hands moves at constant angular velocities, the answer is ## \sqrt{7} .## But don't you think this assumption is somewhat doubtful and wrong?

Similar threads

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