GCD values

As x x ranges over all positive integers, how many different possible values are there for

gcd ( 17 x + 277 , 7 x + 107 ) ? \gcd(17x+277,7x+107) ?


The answer is 16.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

8 solutions

Russell Few
Sep 8, 2013

By the Euclidean Algorithm,

g c d ( 17 x + 277 , 7 x + 107 ) gcd(17x+277, 7x+107)

= g c d ( 17 x + 277 2 ( 7 x + 107 ) , 7 x + 107 ) =gcd(17x+277-2(7x+107), 7x+107)

= g c d ( 3 x + 63 , 7 x + 107 ) =gcd(3x+63, 7x+107)

= g c d ( 3 x + 63 , 7 x + 107 2 ( 3 x + 63 ) ) = gcd(3x+63, 7x+107-2(3x+63))

= g c d ( 3 x + 63 , x 19 ) =gcd(3x+63, x-19)

= g c d ( 3 x + 63 2 ( x 19 ) , x 19 ) =gcd(3x+63-2(x-19), x-19)

= g c d ( x + 101 , x 19 ) =gcd(x+101, x-19)

= g c d ( 120 , x 19 ) =gcd(120, x-19) .

Note that x 19 x-19 could have any remainder when divided by 120 120 , so g c d ( 120 , x 19 ) gcd(120, x-19) could be any factor of 120 120 . Note that since 120 = 2 3 3 5 120=2^3 \cdot 3 \cdot 5 , there are ( 3 + 1 ) ( 1 + 1 ) ( 1 + 1 ) = ( 4 ) ( 2 ) ( 2 ) = 16 (3+1)(1+1)(1+1)=(4)(2)(2)=16 factors of 120 120 .

Thus, there are 16 \boxed{16} different possible values for g c d ( 17 x + 277 , 7 x + 107 ) gcd(17x+277, 7x+107) .

One question, when you have gcd(3x+63, 7x+107), when you subtract 3x+63 from 7x+107, you get gcd(3x+63, 4x+44), and technically, 4x+44 > 3x+63 only when x > 19, and can't x technically be less than 19?

Vishwa Iyer - 7 years, 9 months ago

Log in to reply

That is a good question to ask about the Euclidean Algorithm. In the proof, that doesn't seem to be a consideration, so why does it not matter?

Why do you say that we must have 4 x + 44 > 3 x + 63 4x + 44 > 3x + 63 to calculate gcd ( 3 x + 63 , 4 x + 44 ) \gcd(3x+63, 4x+44) ? If so, does it mean that to calculate gcd ( 4 x + 44 , 3 x + 63 ) \gcd( 4x+44, 3x+63 ) we must have 3 x + 63 > 4 x + 44 3x+63 > 4x+44 ? Does the answer change if you flip the two numbers?

Calvin Lin Staff - 7 years, 9 months ago

awesome

AKKU SHARMA - 7 years, 9 months ago

awesome and brilliant!!!

Adarsh Kumar - 6 years, 10 months ago
Toan Pham Quang
Sep 8, 2013

Let gcd ( 17 x + 277 , 7 x + 107 ) = d \gcd (17x+277,7x+107)=d then we have 7 ( 17 x + 277 ) 17 ( 7 x + 107 ) 7(17x+277)-17(7x+107) is divisible by d d . Therefore d 120 d|120 . Since 120 = 2 3 3 5 120=2^3 \cdot 3 \cdot 5 then the numbers of possible values of d d is ( 3 + 1 ) ( 1 + 1 ) ( 1 + 1 ) = 16 (3+1)(1+1)(1+1)=16 .

David Wu
Sep 8, 2013

Applying the Euclidean Algorithm, we get gcd ( 17 x + 277 , 7 x + 107 ) \gcd(17x+277,7x+107) = gcd ( 3 x + 63.7 x + 107 ) =\gcd(3x+63. 7x+107) = gcd ( 3 x + 63 , x 19 ) =\gcd(3x+63, x-19) = gcd ( 120 , x 19 ) =\gcd(120,x-19) Now since x x ranges over the positive integers, the GCD can be any positive factor of 120 120 . Since 120 = 2 3 3 5 120 = 2^3 \cdot 3 \cdot 5 , there are ( 3 + 1 ) ( 1 + 1 ) ( 1 + 1 ) = 16 (3+1)(1+1)(1+1) = \boxed{16} possible values.

Just a side note, wouldn't negative GCD's work? Because then x x can be less than 19 19 ...

If you want to include negative numbers, remember that 7 7 is still a divisor / factor of 14 -14 . So, the GCD of 14 -14 and 21 -21 is actually 7, and not 7 - 7 ( nor -1).

Calvin Lin Staff - 7 years, 9 months ago
Riccardo Zanotto
Sep 9, 2013

It is well known that gcd ( x , y ) = gcd ( x , a x + b y ) \gcd(x,y)=\gcd(x,ax+by) for all x , y , a , b Z x,y,a,b\in\mathbb Z . So we have gcd ( 17 x + 277 , 7 x + 107 ) = gcd ( 7 x + 107 , 17 x + 277 2 ( 7 x + 107 ) ) = gcd ( 7 x + 107 , 3 x + 63 ) = gcd ( 3 x + 63 , 7 x + 107 2 ( 3 x + 63 ) ) = gcd ( 3 x + 63 , x 19 ) = gcd ( x 19 , 3 x + 63 3 ( x 19 ) ) = gcd ( x 19 , 120 ) \begin{array}{ll}\gcd(17x+277,7x+107)&=&\gcd(7x+107,17x+277-2(7x+107))\\&=&\gcd(7x+107,3x+63)\\&=&\gcd(3x+63,7x+107-2(3x+63))\\&=&\gcd(3x+63,x-19)\\&=&\gcd(x-19,3x+63-3(x-19))\\&=&\gcd(x-19,120)\end{array} Since x x ranges over all positive integers, x 19 x-19 reaches all positive divisors of 120 120 ; on the other hand, since gcd ( x , y ) x \gcd(x,y)\mid x , we have gcd ( x 19 , 120 ) 120 \gcd(x-19,120)\mid 120 . So the gcd \gcd in the text assumes all and only the divisors of 120 120 . But 120 = 2 3 3 5 120=2^3\cdot3\cdot5 , and it has ( 3 + 1 ) ( 1 + 1 ) ( 1 + 1 ) = 16 (3+1)(1+1)(1+1)=16 divisors, so the answer is 16 \boxed{16}

Jeffrey Robles
Sep 10, 2013

Using Euclid's algorithm for finding GCD is quite one of the best ways to answer this problem. If you're not familiar with it, you might want to read about it here: http://www.cut-the-knot.org/blue/Euclid.shtml .

gcd ( 17 x + 277 , 7 x + 107 ) = gcd ( 3 x + 63 , 7 x + 107 ) gcd ( 3 x + 63 , 7 x + 107 ) = gcd ( 3 x + 63 , x 19 ) gcd ( 3 x + 63 , x 19 ) = gcd ( x 19 , 120 ) \gcd(17x+277,7x+107)=\gcd(3x+63,7x+107) \\ \gcd(3x+63,7x+107)=\gcd(3x+63,x-19) \\ \gcd(3x+63,x-19)=\gcd(x-19,120)

Therefore, gcd ( 17 x + 277 , 7 x + 107 ) \gcd(17x+277,7x+107) is a factor of 120 120 . But, 120 = 2 3 3 5 120=2^3 \cdot 3 \cdot 5 . Therefore it has ( 3 + 1 ) ( 1 + 1 ) ( 1 + 1 ) = 16 (3+1)(1+1)(1+1)=16 factors. Thus, the number of possible gcd's is 16 .

Eraz Ahmed
Sep 9, 2013

Using the Euclidean algorithm , if we say it simply , then the process will be like this, divide the divisor by the remainder in every division step , e.g. 17x+277 / 7x+107 In this division , the remainder will be 3x+63 . Now , according to the rule i have said, we have to keep dividing , it means the next step will be, 7x+107/3x+63 and this division will end up with a remainder x-19... We just have to keep dividing untill we get remainder 0 , But in this division , our result will end up in 120 , i mean the last remainder will be 120 and the last divisor will be (x-19) . Now, examine that the more the value of x grow up , the value of GCD will lessen . So , the greatest GCD of these two polynomial will be 120 and the least GCD will be 1 . So , the total number of different possible GCD will be all the divisor of 120 . The number of divisor of 120 is 16 . So there are 16 possible values for the two given polynomial's GCD .

Michael Tang
Sep 12, 2013

We apply the Euclidean Algorithm repeatedly: gcd ( 17 x + 277 , 7 x + 107 ) = gcd ( ( 17 x + 277 ) 2 ( 7 x + 107 ) , 7 x + 107 ) = gcd ( 3 x + 63 , 7 x + 107 ) = gcd ( 3 x + 63 , ( 7 x + 107 ) 2 ( 3 x + 63 ) ) = gcd ( 3 x + 63 , x 19 ) = gcd ( ( 3 x + 63 ) 3 ( x 19 ) , x 19 ) = gcd ( 120 , x 19 ) \begin{aligned} &\;\; \gcd(17x+277, \, 7x+107) \\ &= \gcd((17x+277) - 2(7x+107), \, 7x+107) \\ &= \gcd(3x+63, \, 7x+107) \\ &= \gcd(3x+63, \,(7x+107) - 2(3x+63)) \\ &= \gcd(3x+63, x-19) \\ &= \gcd((3x+63) - 3(x-19),\, x-19) \\ &= \gcd(120,\, x-19) \end{aligned} The greatest common divisor of two numbers has to be a factor of each number, by definition. Therefore, this value must be a factor of 120. 120. For each factor f f of 120 , 120, we can set x 19 = f x-19 = f to get gcd ( 120 , x 19 ) = x 19 = f . \gcd(120, \, x-19) = x-19 = f. Thus, the possible values of the GCD are exactly the factors of 120. 120.

We know that 120 = 2 3 3 1 5 1 . 120 = 2^3 3^1 5^1. So, 120 120 has 4 × 2 × 2 = 16 4 \times 2 \times 2 = \boxed{16} factors.

Barometer Nongbri
Sep 11, 2013

If g = gcd(17 x +277 , 7 x + 107) then g divides both 17 x +277 and 7 x + 107
therefore g divides 14 x + 214 so g|(17 x +277)-(14 x + 214) or g|(3 x +63)-----------(1). And g|(7 x + 107)-(3 x +63) i.e g|(4 x +44)
Therefore g|(4 x +44)- (3 x +63) or g|( x -19) implying that g|(3 x -57) ---------(2) From (1) and (2) we deduce that g|120. Now 120 = 2x2x2x3x5 which has 16 divisors . So there are 16 possible values of g

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...