What is the smallest positive integer n such that g cd ( 2 n − 3 3 , 5 n + 7 3 ) = 1 ?
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.
What is gcd?
what is the Euclidean algorithm
What does the , mean?
Log in to reply
GCD = Greatest Common Divisor; for example:
g c d ( 3 , 7 ) = 1
g c d ( 4 , 1 8 ) = 2
Obviously, g c d ( p 1 , p 2 ) = 1 , where p 1 and p 2 are primes, since a prime is divisible only by 1 and itself. This is the basis of the solution given above; since 311 is prime, for g c d ( n + 1 3 9 , 3 1 1 ) = 1 , we have to let n + 1 3 9 = k × 3 1 1 ∣ k ∈ Z ., and the solution follows.
Log in to reply
Thank you. I am used to seeing it as gcf, greatest common factor. Math good, language bad.
Perfect.
Since g c d ( 2 n − 3 3 , 5 n + 7 3 ) = 1 , they must be both multiples of some integers. Say one of their divisors is a . Since they are both multiples of a , their difference should also be a multiple of a .
We take 5 n + 7 3 − ( 2 n − 3 3 ) = 3 n + 1 0 6 .
Then, we further reduce the result by taking away 2 n − 3 3 from it. 3 n + 1 0 6 − ( 2 n − 3 3 ) = n + 1 3 9 .
After that, we multiply the result by 2 and take 2 n − 3 3 from it. 2 ( n + 1 3 9 ) − ( 2 n − 3 3 ) = 3 1 1 .
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 − 3 3 , 5 n + 7 3 ) = 1 . Since the smallest n is required, the value of a should be as small as possible. In this case, we take a = 3 1 1 and let 2 n − 3 3 = a in order to get the smallest n .
2 n − 3 3 = 3 1 1
n = 1 7 2
We substitute n = 1 7 2 into 5 n + 7 3 : 5 ( 1 7 2 ) + 7 3 = 9 3 3 . Since 933 is a multiple of 311, n = 1 7 2 is a valid answer.
In conclusion, n = 1 7 2 .
superb
For g cd ( 2 n − 3 3 , 5 n + 7 3 ) = 1 , 2 n − 3 3 and 5 n + 7 3 must be multiples of each other. SInce 5 n + 7 3 > 2 n − 3 3 , let 5 n + 7 3 = k ( 2 n − 3 3 ) where k is a positive integer. Isolating n we have n = 2 k − 5 7 3 + 3 3 k . For n to be the smallest positive integer, 2 k − 5 = 1 and k = 3 . Therefore, n = 1 7 2 .
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.
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.
Log in to reply
Maybe some of the users only look for the shortest and simplest solution, although it's wrong.
wowww...so cool
that's easy
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
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?
Let a prime number p be the greatest common divisor of the numbers 2 n − 3 3 and 5 n + 7 3
p ∣ 2 n − 3 3 and p ∣ 5 n + 7 3 ⇒ p ∣ 3 n + 1 0 6 ⇒ p ∣ n + 1 3 9 ⇒ p ∣ 2 n + 2 7 8
So p ∣ 2 n − 3 3 p ∣ 2 n + 2 7 8
This implies that 2 7 8 + 3 3 = p k , k ≥ 1 As it turns out, 3 3 1 is prime so our G C D is 3 3 1
Now we have 3 1 1 ∣ 2 n − 3 3 3 1 1 ∣ 5 n + 7 3 ⇒ 3 1 1 ∣ 7 n + 4 0
This implies 7 n = 2 7 1 ( m o d 3 1 1 )
Therefore we can say 7 n = 2 7 1 + 3 1 1 k , k ≥ 0
Obviously if we want to minimise the value of n we must also minimise the value of k
2 7 1 = 5 ( m o d 7 ) ⇒ 3 1 1 k = 2 ( m o d 7 )
3 1 1 = 3 ( m o d 7 ) so k is of the form 3 + 7 l , l ≥ 0
If we take the minimum value of k = 3 we get n = 1 7 2
If we plug n = 1 7 2 back into the original two expressions we get 2 n − 3 3 = 3 1 1 , 5 n + 7 3 = 9 3 3 both of which are clearly divisible by 3 1 1 so n = 1 7 2 is the answer.
Thanks for the very clear explanation!
Apologies for the three common typos, where you see a ≤ I meant to put a ≥
Since n ∈ Z + so 2 n − 3 3 < 5 n + 7 3 .
So it is wise to say 5 n + 7 3 = k ⋅ ( 2 n − 3 3 ) for some k ∈ R .
→ k = 2 n − 3 3 5 n + 7 3
→ k = 2 n − 3 3 2 ⋅ ( 2 n − 3 3 ) + 2 1 ( ⋅ ( 2 n − 3 3 ) + 3 1 1 )
→ k = 2 + 2 1 + 2 n − 3 3 3 1 1
Since we want gcd ( 2 n − 3 3 , 5 n + 7 3 ) = 1 , so we require n to be least & in turn k as least.
→ 3 1 1 = 2 n − 3 3
→ n = 1 7 2 .
Typo: Fifth line should read → k = 2 + 2 1 + 2 ⋅ ( 2 n − 3 3 ) 3 1 1 . Thereupon since 3 1 1 is a prime so we get desired value of n .
(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 − 3 3 , 5 n + 7 3 be k, for a positive integer k with k is not equal to 1 . Then, we have the following equations: 2 n − 3 3 = k x and 5 n + 7 3 = k y for a positive integers 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 ) = 3 1 1 Since 3 1 1 is a prime number, it might be suggested that the only positive integer k is k = 3 1 1 . Noting n as an element of positive integer, the inequality 2 n − 3 3 < 5 n + 7 3 holds and in order to obtain the smallest n we should have the smallest 2 n − 3 3 , in another words, it forces 2 n − 3 3 = 3 1 1 − > n = 1 7 2 .
Hence, the smallest positive integer n is 1 7 2
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
(#)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.
Using Euclidean algorithm we get gcd ( 2 n − 3 3 , 5 n + 7 3 ) = gcd ( 2 n − 3 3 , n + 1 3 9 ) = gcd ( − 3 1 1 , n + 1 3 9 ) = gcd ( 3 1 1 , n + 1 3 9 ) Note that 3 1 1 is prime, hence we need n + 1 3 9 = 3 1 1 , i.e. n = 1 7 2
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
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);}
}
}
}
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
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)
Problem Loading...
Note Loading...
Set Loading...
This is a direct application of the Euclidean Algorithm. g cd ( 2 n − 3 3 , 5 n + 7 3 ) = g cd ( 5 n + 7 3 , 2 n − 3 3 ) = g cd ( n + 1 3 9 , 2 n − 3 3 ) = g cd ( n + 1 3 9 , − n + 1 7 2 ) = g cd ( n + 1 3 9 , 3 1 1 )
Since 3 1 1 is prime, have have to have 3 1 1 ∣ n + 1 3 9 for g cd ( n + 1 3 9 , 3 1 1 ) = 1 .The smallest multiple of 3 1 1 that makes n > 0 is, obviously, 3 1 1 .
Therefore, our answer is 3 1 1 − 1 3 9 = 1 7 2 .