Testing small values

What is the smallest positive integer n n such that gcd ( 2 n 33 , 5 n + 73 ) 1 ? \gcd( 2n-33, 5n + 73 ) \neq 1?


The answer is 172.

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.

13 solutions

Daniel Liu
Oct 27, 2013

This is a direct application of the Euclidean Algorithm. gcd ( 2 n 33 , 5 n + 73 ) = gcd ( 5 n + 73 , 2 n 33 ) = gcd ( n + 139 , 2 n 33 ) = gcd ( n + 139 , n + 172 ) = gcd ( n + 139 , 311 ) \begin{aligned} \gcd(2n-33,5n+73) &= \gcd(5n+73,2n-33) \\ &= \gcd(n+139,2n-33) \\ &= \gcd(n+139,-n+172) \\ &= \gcd(n+139,311) \end{aligned}

Since 311 311 is prime, have have to have 311 n + 139 311|n+139 for gcd ( n + 139 , 311 ) 1 \gcd(n+139,311)\ne 1 .The smallest multiple of 311 311 that makes n > 0 n>0 is, obviously, 311 311 .

Therefore, our answer is 311 139 = 172 311-139=\boxed{172} .

What is gcd?

Bobbie Schultz - 7 years, 7 months ago

Log in to reply

Greatest Common Divisor

Daniel Chiverton - 7 years, 7 months ago

what is the Euclidean algorithm

milind prabhu - 7 years, 7 months ago

Log in to reply

You can read up on the technique Euclidean Algorithm .

Calvin Lin Staff - 7 years, 7 months ago

What does the , mean?

Bobbie Schultz - 7 years, 7 months ago

Log in to reply

GCD = Greatest Common Divisor; for example:

g c d ( 3 , 7 ) = 1 gcd(3, 7) = 1

g c d ( 4 , 18 ) = 2 gcd(4, 18) = 2

Obviously, g c d ( p 1 , p 2 ) = 1 gcd(p_{1}, p_{2}) = 1 , where p 1 p_{1} and p 2 p_{2} are primes, since a prime is divisible only by 1 1 and itself. This is the basis of the solution given above; since 311 is prime, for g c d ( n + 139 , 311 ) 1 gcd(n + 139, 311) \neq 1 , we have to let n + 139 = k × 311 k Z n + 139 = k \times 311 | k \in Z ., and the solution follows.

Dhruv Baid - 7 years, 7 months ago

Log in to reply

Thank you. I am used to seeing it as gcf, greatest common factor. Math good, language bad.

Bobbie Schultz - 7 years, 7 months ago

Perfect.

Finn Hulse - 7 years, 1 month ago
Siao Chi Mok
Oct 28, 2013

Since g c d ( 2 n 33 , 5 n + 73 ) gcd(2n-33, 5n+73) 1 \neq 1 , they must be both multiples of some integers. Say one of their divisors is a a . Since they are both multiples of a a , their difference should also be a multiple of a a .

We take 5 n + 73 ( 2 n 33 ) 5n + 73 - ( 2n - 33 ) = 3 n + 106 3n + 106 .

Then, we further reduce the result by taking away 2 n 33 2n - 33 from it. 3 n + 106 ( 2 n 33 ) 3n + 106 - (2n - 33) = n + 139 n + 139 .

After that, we multiply the result by 2 and take 2 n 33 2n - 33 from it. 2 ( n + 139 ) ( 2 n 33 ) = 311 2(n + 139) - (2n - 33) = 311 .

Note that 311 is still a multiple of a. Since 311 is a prime number, 311 has no other divisors other than 1 and itself. We cannot take 1 as the value of a because it is stated that g c d ( 2 n 33 , 5 n + 73 ) gcd(2n-33, 5n+73) 1 \neq 1 . Since the smallest n n is required, the value of a a should be as small as possible. In this case, we take a = 311 a = 311 and let 2 n 33 = a 2n - 33 = a in order to get the smallest n n .

2 n 33 = 311 2n - 33 = 311

n = 172 n = 172

We substitute n = 172 n = 172 into 5 n + 73 5n + 73 : 5 ( 172 ) + 73 = 933 5(172) + 73 = 933 . Since 933 is a multiple of 311, n = 172 n = 172 is a valid answer.

In conclusion, n = 172 n = \boxed{172} .

superb

vaishnav garg - 7 years, 7 months ago

For gcd ( 2 n 33 , 5 n + 73 ) 1 , 2 n 33 \gcd(2n-33,5n+73)\neq1, 2n-33 and 5 n + 73 5n+73 must be multiples of each other. SInce 5 n + 73 > 2 n 33 5n+73>2n-33 , let 5 n + 73 = k ( 2 n 33 ) 5n+73=k(2n-33) where k k is a positive integer. Isolating n n we have n = 73 + 33 k 2 k 5 n=\frac {73+33k}{2k-5} . For n n to be the smallest positive integer, 2 k 5 = 1 2k-5=1 and k = 3 k=3 . Therefore, n = 172 n=172 .

Moderator note:

As pointed out by Sam, this solution made the wrong assumption that if 2 numbers are not coprime, then they must be multiples of each other.

/How do you know they must be multiples of each other? 14 and 21 have a gcd that doesn't equal 1 (7) but they are not multiples of each other.

Sam Ringer - 7 years, 7 months ago

Seems strange that inspite of making a wrong assumption this solution received quite large upvotes. I think Brilliant users should read the solution thoroughly before voting it up.

Nishant Sharma - 7 years, 7 months ago

Log in to reply

Maybe some of the users only look for the shortest and simplest solution, although it's wrong.

Vincent Tandya - 7 years, 7 months ago

wowww...so cool

Halim B-Max - 7 years, 7 months ago

that's easy

Himanshu Mittal - 7 years, 7 months ago

i think its not necessary to mention that they are multiples of each other but that they share a common factor(k) and i think rest is all correct but you are welcome to prove me wrong

Jun Das - 7 years, 7 months ago

In this solution, how did you infer that n will be minimum at k=3? Is that hit and trial? That may consume a lot of time under examination conditions?

Ayush Singh - 7 years, 7 months ago
Danny He
Oct 27, 2013

Let a prime number p p be the greatest common divisor of the numbers 2 n 33 2n-33 and 5 n + 73 5n+73

p 2 n 33 p|2n-33 and p 5 n + 73 p 3 n + 106 p n + 139 p 2 n + 278 p|5n+73 \Rightarrow p|3n+106 \Rightarrow p|n+139 \Rightarrow p|2n+278

So p 2 n 33 p|2n-33 p 2 n + 278 p|2n+278

This implies that 278 + 33 = p k , k 1 278+33 =pk, \: k\geq1 As it turns out, 331 331 is prime so our G C D GCD is 331 331

Now we have 311 2 n 33 311| 2n-33 311 5 n + 73 311 | 5n+73 311 7 n + 40 \Rightarrow 311 | 7n+40

This implies 7 n = 271 ( m o d 311 ) 7n = 271 \left(mod \: 311\right)

Therefore we can say 7 n = 271 + 311 k , k 0 7n = 271 + 311k, \: k \geq 0

Obviously if we want to minimise the value of n n we must also minimise the value of k k

271 = 5 ( m o d 7 ) 311 k = 2 ( m o d 7 ) 271 = 5 \left(mod \: 7\right) \Rightarrow 311k = 2 \left(mod \: 7 \right)

311 = 3 ( m o d 7 ) 311 = 3 \left(mod \: 7 \right) so k k is of the form 3 + 7 l , l 0 3 +7l, \: l \geq 0

If we take the minimum value of k = 3 k=3 we get n = 172 n=172

If we plug n = 172 n = 172 back into the original two expressions we get 2 n 33 = 311 , 5 n + 73 = 933 2n-33 = 311, \: 5n+73 = 933 both of which are clearly divisible by 311 311 so n = 172 n = 172 is the answer.

Thanks for the very clear explanation!

Fengyu Seah - 7 years, 7 months ago

Apologies for the three common typos, where you see a \leq I meant to put a \geq

Danny He - 7 years, 7 months ago
Nishant Sharma
Nov 1, 2013

Since n \in\, Z + \mathbb{Z^+} so 2 n 33 < 5 n + 73 2n-33\,<\,5n+73 .

So it is wise to say 5 n + 73 = k ( 2 n 33 ) 5n+73\;=k\cdot(2n-33) for some k \in\, R \mathbb{R} .

k = 5 n + 73 2 n 33 \rightarrow\;k\;=\frac{5n+73}{2n-33}

k = 2 ( 2 n 33 ) + 1 2 ( ( 2 n 33 ) + 311 ) 2 n 33 \rightarrow\;k\;=\frac{2\cdot(2n-33)+\frac{1}{2}(\cdot(2n-33)+311)}{2n-33}

k = 2 + 1 2 + 311 2 n 33 \rightarrow\;k\;=2+\frac{1}{2}+\frac{311}{2n-33}

Since we want gcd ( 2 n 33 , 5 n + 73 ) 1 (2n-33,5n+73)\neq1 , so we require n n to be least & in turn k k as least.

311 = 2 n 33 \rightarrow\;311\;=2n-33

n = 172 \rightarrow\;n\;=\boxed{172} .

Typo: Fifth line should read \displaystyle k = 2 + 1 2 + 311 2 ( 2 n 33 ) \rightarrow\;k\;=2+\frac{1}{2}+\frac{311}{2\cdot(2n-33)} . Thereupon since 311 311 is a prime so we get desired value of n n .

Nishant Sharma - 7 years, 7 months ago

(5n + 73)/(2n - 33) ≠ 1

so for example we assume that their quotient is equal to 2

(5n + 73) - (2)(2n - 33) = r

n + 139 = r

making r = 0 is not correct since n will be equal to -139

Then we try the quotient 3

(5n + 73) - (3)(2n - 33) = r

-n + 172 = r

Making r = 0

-n + 172 = 0

n = 172

Let the g c d ( 2 n 33 , 5 n + 73 gcd(2n - 33, 5n + 73 be k, for a positive integer k k with k k is not equal to 1 1 . Then, we have the following equations: 2 n 33 = k x 2n - 33 = kx and 5 n + 73 = k y 5n + 73 = ky for a positive integers x , y x, y .

Multiply the first equation with 5 and the second one by 2, subtract the second equation with the first one give us: k ( 2 y 5 x ) = 311 k(2y - 5x ) = 311 Since 311 311 is a prime number, it might be suggested that the only positive integer k k is k = 311 k = 311 . Noting n as an element of positive integer, the inequality 2 n 33 < 5 n + 73 2n - 33 < 5n + 73 holds and in order to obtain the smallest n n we should have the smallest 2 n 33 2n - 33 , in another words, it forces 2 n 33 = 311 > n = 172 2n - 33 = 311 -> n=172 .

Hence, the smallest positive integer n n is 172 \boxed{172}

Vincent Huang
Oct 27, 2013

From Euclid's algorithm we get the maximum gcd is 311, which is prime. Therefore both numbers must be multiples of 311, and the minimum value of n is 172

Sayan Ghosh
Nov 1, 2013

(#)include <stdio.h> (#)include <string.h>

main() { int a,b,i,j; for(i=0; i<999;i++) { a=2 i-33; b=5 i+73; for(j=2; j<=a; j++) if(a%j==0 && b%j==0) { printf("\n %d %d %d", a,b, i); }

} }

This will give i= 172 i= 483 i= 794

172 being the smallest.

A simple program can give the solution.

SAYAN GHOSH - 7 years, 7 months ago
Jan J.
Oct 28, 2013

Using Euclidean algorithm we get gcd ( 2 n 33 , 5 n + 73 ) = gcd ( 2 n 33 , n + 139 ) = gcd ( 311 , n + 139 ) = gcd ( 311 , n + 139 ) \begin{aligned} \text{gcd}(2n - 33,5n + 73) &= \text{gcd}(2n - 33,n + 139) \\ &= \text{gcd}(-311,n + 139) \\ &= \text{gcd}(311,n + 139) \end{aligned} Note that 311 311 is prime, hence we need n + 139 = 311 n + 139 = 311 , i.e. n = 172 n = \boxed{172}

for taking n from 1 to 1000 and checking gcd(m) from 2 to 1000 ... we get n=172 and m=311(minimum value for n) here is its c programme

include<stdio.h>

int main() { int n,m; for(m=2;m<1000;m++) { for(n=1;n<1000;n++) { if((2 n-33)%m==0 && (5 n+73)%m==0){

         printf("%d %d\n", n, m);}
    }
}

}

Abhishek Rawat
Nov 3, 2013

put n=k+17

gcd(2k+1,5k+158)

let 5k+158/2k+1=p/q

=>k=[311(2p+5q/2p-5q)-321]/20;

for k to be positive integer (2p+5q/2p-5q)=11,31,51,.......

gives smallest value of k=155

and hence n=172

Arkaprava Goswami
Oct 29, 2013

let gcd(2n-33,5n+73) is not equal to 1.let it is "d"...now we got d|2n-33 and d|5n+73...now we can interpret that d|2(2n-33),hence can say d|(5n+73)-2(2n-33).... i.e d|n+139...again we can find that d|n-172...hence we can say d|311..

now as 311 is a prime number so d=311.. now we have to find the least n for which gcd of that 2 no. is 311...hence we got the least n is (172)

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...