Not gonna lie

Consider all pairs of positive integers ( G , L ) (G, L ) such that 2 G L 1000 2 \leq G \leq L \leq 1000 . For each pair, let there be N G , L N_{G, L} ordered pairs of positive integers ( a , b ) (a, b) such that G = gcd ( a , b ) G = \gcd (a,b) and L = l c m ( a , b ) L = lcm(a,b) .

What is the largest possible value of N G , L N_{G,L} ?


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.

4 solutions

Russell Few
Sep 23, 2013

Since G G is a factor of a a and a a is a factor of L L , so G G is a factor of L L , if G G does not divide L L , then N G , L N_{G,L} would be 0 0 .

Lemma: The value of N G , L N_{G,L} is the same as the number of pairs of positive integers ( a , b ) (a,b) such that a a and b b are relatively prime and their Least Common Multiple is L G \frac{L}{G} .

Proof: We would establish a bijection between sets A, that consists of the pairs of positive integers ( a , b ) (a,b) such that G = g c d ( a , b ) G=gcd(a,b) and L = l c m ( a , b ) L=lcm(a,b) and set B, that consists of the pairs of positive integers such that a a and b b are relatively prime and their Least Common Multiple is L G \frac{L}{G} .

We consider a certain ordered pair in A A . We divide both a a and b b by G G to get an ordered pair in B B . Likewise, if we consider an ordered pair in B B , we multiply both a a and b b by G G to get an ordered pair in A A . Hence we have established a bijection.

Now we find the number of pairs of positive integers ( a , b ) (a,b) such that a a and b b are relatively prime and their Least Common Multiple is L G \frac{L}{G} .

Since a a and b b are relatively prime, they do not share any prime factor, so for each prime factor in L G \frac{L}{G} , it would exist either in a a in b b , but not in both, and obviously, not in none of them. Hence, there are 2 2 ways to choose (the exponent would be the same as the one in L G \frac{L}{G} . Thus, the number of such ordered pairs is the 2 2 raised to the number of prime factors in L G \frac{L}{G} .

Now L G \frac{L}{G} is at most 500 500 . It could have at most 4 4 different prime factors because the product of the first 5 5 prime numbers is ( 2 ) ( 3 ) ( 5 ) ( 7 ) ( 11 ) = 2310 (2)(3)(5)(7)(11)=2310 , which is greater than 500 500 . Hence, the maximum possible value of N G , L N_{G,L} is 2 4 = 16 2^4=16

Now if we let L = 420 L=420 and G = 2 G=2 , we would have L G = 210 \frac{L}{G}=210 , which has 4 4 different prime factors: 2 , 3 , 5 , 7 2, 3, 5, 7 . In this case, N G , L = 2 4 = 16 N_{G,L}=2^4=16 .

Thus, the largest possible value of N G , L N_{G,L} is 16 \boxed{16} .

Moderator note:

Nicely done!

thanks!

Russell FEW - 7 years, 8 months ago
Matt McNabb
Sep 23, 2013

Since G G is the gcd \gcd , we can uniquely write: a = G A b = G B a = GA \\ b=GB for some coprime integers A , B A,B . Then L = G A B L = GAB , from the definitions of gcd \gcd and lcm \mbox{lcm} .

So we need to find the maximum number of ways that a value A B AB can be broken up into a pair of coprime factors, subject to the constraint that G A B 1000 GAB \le 1000 .

Note that G G doesn't have to be coprime to A , B A,B . So we may as well go with the smallest possible value G = 2 G = 2 .

If we have A B = 2 × 3 × 5 × 7 G = 2 AB = 2 \times 3 \times 5 \times 7 \\ G=2 then G A B = 420 GAB = 420 which is good; and since A B AB has four prime factors then we can split it into a coprime pair in 2 4 = 16 2^4 = \boxed{16} ways - each prime factor is either in A A or in B B .

If we introduce a fifth distinct prime factor, the smallest possible is 11 11 but that busts G A B > 1000 GAB \gt 1000 . Or if we introduce a power to the prime factors of this example, it gains nothing because of the requirement that A , B A,B be coprime - all powers of that factor would have to stay together.

So there is no way we can expand on this solution, which is N 2 , 420 N_{2,420} .

NB. There is another value of a b ab with the same N G , L N_{G,L} value if we take G = 3 G=3 , i.e. N 3 , 630 N_{3, 630} .

Moderator note:

Nicely done!

The end of the solution is slightly informal, though can be easily made rigorous.

One can also get the same 16 16 in a few other ways, for example by taking the pair ( 2 , 660 ) = ( 2 , 2 2 3 5 11 ) (2,660)=(2,2\cdot 2\cdot 3\cdot 5 \cdot 11) .

Let the prime decomposition of G G be p 1 a 1 p 2 a 2 p n a n p_1^{a_1} p_2^{a_2} \cdots p_n ^{a_n} and that of L L be p 1 b 1 p 2 b 2 p n b n p_1^{b_1} p_2^{b_2} \cdots p_n ^{b_n} , where the p i p_i s are prime and a i a_i s and b i b_i s are non-negative integers. It is obvious that b i a i b_i \geq a_i for all i i . Note that n n is the number of primes in the prime decomposition of L L . If a prime p k p_k is not present in the prime decomposition of G G , then we have a k = 0 a_k=0 (it was pretty obvious from the definition, but I thought it is better to clarify).

Let a = p 1 c 1 p 2 c 2 p k c k a= p_1^{c_1} p_2^{c_2} \cdots p_k^{c_k} and b = p 1 d 1 p 2 d 2 p n d n b= p_1^{d_1} p_2^{d_2} \cdots p_n^{d_n} . Then, note that gcd ( a , b ) = p 1 m i n ( c 1 , d 1 ) p 2 m i n ( c 2 , d 2 ) p n m i n ( c n , d n ) \gcd (a,b)= p_1^{min(c_1, d_1)} p_2^{min(c_2, d_2)} \cdots p_n^{min(c_n, d_n)} l c m ( a , b ) = = p 1 m a x ( c 1 , d 1 ) p 2 m a x ( c 2 , d 2 ) p n m a x ( c n , d n ) lcm (a,b)= = p_1^{max(c_1, d_1)} p_2^{max(c_2, d_2)} \cdots p_n^{max(c_n, d_n)} Matching powers, we obtain m i n ( c i , d i ) = a i min(c_i,d_i) = a_i and m a x ( c i , d i ) = b i max(c_i, d_i)= b_i for all i i .
Let us determine how many possibilities this gives rise to for the c i c_i s and d i d_i s. If there are k i k_i possibilities for ( c i , d i ) (c_i, d_i) for all i i , then by the multiplication principle we have N G , L = i = 0 n k i N_{G,L}= \prod \limits_{i=0}^{n} k_i Note that if we have a m = b m a_m= b_m for some m m , then there is only one possibility for ( c m , d m ) (c_m, d_m) : c m = d m = a m = b m c_m= d_m= a_m= b_m This implies that N G , L N_{G,L} does not change if we remove all the primes from G G and L L that appear the same number of times in both G G and L L . So let us assume a i b i a_i \neq b_i for all i i , thus a i > b i a_i > b_i .
Note that m i n ( c i , d i ) = a i min(c_i, d_i)= a_i and m a x ( c i , d i ) = b i max(c_i, d_i)= b_i , b i > a i b_i>a_i gives two possibilities for ( c 1 , d i ) (c_1,d_i) , as c i c_i can take two values: a i a_i or b i b_i , and d i d_i must take the other value. Then by the multiplication principle, we have N G L = 2 n N_{GL}= 2^n .

We wish to find the largest possible value of n n for which we can find two integers lying in the range [ 2 , 1000 ] [2, 1000] , of which the larger one has exactly n n prime divisors, and there exists no prime which appears a same number of times in both the integers. Note that if we set G = 2 G=2 , L = 2 2 3 5 7 L= 2^2 \cdot 3 \cdot5 \cdot 7 , then n = 4 n=4 and N G , L = 2 4 = 16 N_{G,L}= 2^4= 16 . Note that this is the largest possible value of n n we can obtain, as we are trying to maximize the number of prime divisors of L L while minimizing the number of prime divisors of G G keeping the condition that no prime appears the same number of times in G G and L L . So we can conclude that our answer is 16 \boxed{16} .

Note: if the 1000 1000 was replaced by some larger positive integer k k , then our optimal choice of ( G , L ) (G,L) would be ( G , L ) = ( 2 , 2 2 3 5 p x ) (G,L)= (2, 2^2 \cdot 3 \cdot 5 \cdots p_x ) , where p i p_i is the i t h i_{th} prime and x x is the largest integer satisfying 2 2 3 5 p x k 2^2 \cdot 3 \cdot 5 \cdots p_x \leq k .

Moderator note:

Nice job!

For largest possible value of N G , L N_{G,L} , observe that we would need the GCD G G to be small, so that we can have more multiple-pairs of it.

Suppose we have positive integers ( a , b ) (a,b) st a = G h , b = G k a=Gh,b=Gk with ( h , k ) = 1 (h,k)=1 . Note that L = G h k L=Ghk .

For L 1000 L \leq 1000 & get more pairs, the greatest as such would occur for G = 2 G=2 (& possibly for other values,but for 2 is sure,since it is the smallest prime). Then h k 500 hk \leq 500 .

To have more pairs of ( h , k ) (h,k) , ( h , k ) (h,k) assume values divisible by single powers of primes only(observe that by allowing any of them to be a multiple of any higher power of a prime, number of pairs will fall as h k hk increases but it is bounded above),

we know 2 × 3 × 5 × 7 = 210 < 500 2 \times 3 \times 5 \times 7 = 210 < 500 , so we put h k = 2 3 5 7 hk = 2\cdot 3\cdot 5\cdot 7 , thereby furnishing 2 4 = 16 2^4 = 16 ordered values for ( h , k ) (h,k) & in turn for ( a , b ) (a,b) .

Moderator note:

The solution is basically correct, but not very rigorous. Statements like "assume values divisible by single powers of primes only(observe that by allowing any of them to be a multiple of any higher power of a prime, number of pairs will fall as h k hk increases but it is bounded above" should be avoided in a rigorous proof. Instead, one should say something like: "For any pair ( G , L ) (G,L) with G L , G\mid L, consider a pair ( G , L ) , (G,L'), where L / G L'/G is the product of all primes dividing L / G . L/G. Note that N ( G , L ) = N ( G , L ) N(G,L')=N(G,L) and L L . L'\leq L. Therefore, we only need to consider pairs ( G , L ) (G,L) for which L / G L/G is a product of distinct primes."

Thanks for your suggestion Challenge Master,I will try to fulfill the 'rigorous' part. I always like to 'feel' the problem & think.

A Brilliant Member - 7 years, 8 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...