How many ordered pairs of positive integers ( m , n ) satisfy
g cd ( m 3 , n 2 ) = 2 2 ⋅ 3 2 and lcm ( m 2 , n 3 ) = 2 4 ⋅ 3 4 ⋅ 5 6 ?
This problem is shared by Muhammad A.
Details and assumptions
g cd ( a , b ) and lcm ( a , b ) denote the greatest common divisor and least common multiple of a and b , respectively.
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.
correct, but cannot be featured (some unusual TeX version, I think)
m can be 2.3.(5^6) na d n can be 1
I also did the same solution.
Please edit the line in the middle from m a x ( 2 a 1 , 3 b 1 ) = 2 to m a x ( 2 a 1 , 3 b 1 ) = 4 .
P.S. One day I am going to get trolled for pointing out typos. Lol.
I'm on mobile and i see lcm is 6^4. Where did you saw that 5?
One thing.. m^3 = 2^2 * 3^2 * x , n^2 = 2^2 * 3^2 * y. & m^3 * n^2 = 2^6 * 3^6 * 5^6 (from gcd * lcm = product of two numbers) => xy = 2^2 * 3^2 * 5^6
now m & n are integers. so, m^3 has to hv cubes in all of its factors and n^2 must have squares in all of its factors.. but
m^3 = 5^6 * 2^3 * 3^3 => n^2 = 2^3 * 3^3 or m^3 = 2^3 * 3^3 => n^2 = 2^3 * 3^3 * 5^6
in none of the cases n^2 can be an integer.
also that m^3 and n^3 would hv a gcd = 2^3 * 3^3
MIN(m^3, n^2) = 2^2 * 3^2 or a multiple. MAX(m^3, n^2) = 2^4 * 3^4 * 5^6 or a submultiple.
also that if m^3 = 5^6 and n^2 = 2^6 * 3^6 [which seems to be the only option to balance the squares and cubes] , gcd would be 1.
Please correct me if i m wrong.
Note that the prime factorization of m , n must consists of only the primes 2 , 3 and 5 . So, we can write m = 2 a ⋅ 3 b ⋅ 5 c and n = 2 d ⋅ 3 e ⋅ 5 f . Note that every set of ( a , b , c , d , e , f ) determines a distinct solution, by the fundamental theorem of arithmetic.
Now, from G C D ( m 3 , n 2 ) = 2 2 ⋅ 3 2 , we get m i n ( 3 a , 2 d ) = 2 = m i n ( 3 b , 2 e ) and one of c or f is 0 . Then, it is obvious that d = e = 1 .
From L C M ( m 2 , n 3 ) = 2 4 ⋅ 3 4 ⋅ 5 6 . Then, a = 2 , b = 2 .
Now, we consider two cases.
1) c = 0
Then by L C M ( m 2 , n 3 ) = 2 4 ⋅ 3 4 ⋅ 5 6 , one gets f = 2 .
2) f = 0
Then, c = 3 .
So, there are two solutions.
please explain that what is min function that you have used in solution
Log in to reply
It's how g cd is defined.
Let m = k = 1 ∏ r p k a k and n = k = 1 ∏ s p k b k , then g cd ( m , n ) = k = 1 ∏ min ( r , s ) p k min ( a k , b k ) where a k , b k , r , s are positive integers, p k is prime number.
If you want to consider gcd, just look at the minimum of degree on each prime base.
Clearly prime factors of m and n are 2 3 5 denote m=2^x1.3^x2.5^x3 and n=2^y1.3^y2.5^y3 then we can write gcd(m^3,n^2)=2^(min(3x1 and 2y1)).3^(min(3x2 and 2y2)).5^(min(3x3 and 2y3)) lcm(m^2,n^3)=2^(max( 2x1 and 3y1)).3^(max( 2x2 and 3y2)).5^(max(2x3 and 3y3)) => min(3x1 and 2y1)=2 but x1 and y1 are whole numbers so y1=1 lly max( 2x1 and 3y1)=4 so x1=2 IIY x2=2 y2=1 now min(3x3 and 2y3)=0 and max(2x3 and 3y3)=6 so(x3 y3)=(3 0) (0 2) correspond to solution (m n)=(4500 6) and(36 60) are two solutions
From g c d ( m 3 , n 2 ) = 2 2 ∗ 3 2 follows that n = 2 ∗ 3 ∗ X , since n must contain the prime factors 2 , 3 but cannot contain each of them more than once as otherwise the second condition can not be fulfilled. It follows that m = 2 2 ∗ 3 2 ∗ Y from the second condition. Moreover, we know that 5 is not part of the gcd, so all prime factors of 5 must be either contained completely in n or completely in m . This leaves two possibilities: n = 2 ∗ 3 ; m = 2 2 ∗ 3 2 ∗ 5 3
n = 5 2 ∗ 2 ∗ 3 ; m = 2 2 ∗ 3 2 .
From the lcm result of 2 4 ⋅ 3 4 ⋅ 5 6 , we can deduce that the prime factors of m and n can only be the subset of 2 , 3 , 5 . Any other prime cannot be a factor of m or n , or else it would contribute to the result of the lcm.
Suppose m = 2 a ⋅ 3 b ⋅ 5 c and n = 2 p ⋅ 3 q ⋅ 5 r ...
There are a few facts can be derived from the equations:
The gcd result contains 2 2 , which means min ( 3 a , 2 p ) = 2 ... this can only be achieved if p = 1 .
The gcd result contains 3 2 , which means min ( 3 b , 2 q ) = 2 ... this can only be achieved if q = 1 .
The lcm result contains 2 4 , which means max ( 2 a , 3 p ) = 4 ... this can only be achieved if a = 2 .
The lcm result contains 3 4 , which means max ( 2 b , 3 q ) = 4 ... this can only be achieved if b = 2 .
Replacing the variables, we have so far:
m = 2 2 ⋅ 3 2 ⋅ 5 c = 3 6 ⋅ 5 c
n = 2 1 ⋅ 3 1 ⋅ 5 r = 6 ⋅ 5 r
Furthermore, m and n cannot be both a multiple of 5, or else the gcd result would include a multiple of 5.
Now if we want to calculate the exact pairs, we do the following:
If m is a multiple of 5, then c = 3 and r = 0 , this is to make up the lcm result which includes 5 6 , this leads to a pair of:
m = 3 6 ⋅ 5 c = 3 6 ⋅ 5 3 = 3 6 ⋅ 1 2 5 = 4 5 0 0
n = 6
If n is a multiple of 5, then r = 2 and c = 0 , this is to make up the lcm result which includes 5 6 , this leads to a pair of:
m = 3 6
n = 6 ⋅ 5 r = 6 ⋅ 5 2 = 6 ⋅ 2 5 = 1 5 0
So the solution set is: ( 4 5 0 0 , 6 ) and ( 3 6 , 1 5 0 ) ... 2 possible solutions.
We can also care less about the exact numbers. We are dealing with 6 variables, 4 of them ( a , b , p , q ) are fixed to certain values. Out of the remaining variables, ... one of them will be zero, and the other non-zero, that is: c = 0 and r = 0 , or c = 0 , and r = 0 ... 2 solutions.
As
l
c
m
(
m
2
,
n
3
)
=
2
4
⋅
3
4
⋅
5
6
, let
m
and
n
be of the form
2
a
⋅
3
b
⋅
5
c
and
2
d
⋅
3
e
⋅
5
f
respectively.
(
a
,
b
,
c
,
d
,
e
,
f
∈
N
)
g
c
d
(
m
3
,
n
2
)
=
2
2
⋅
3
2
, so
m
i
n
(
3
a
,
2
d
)
=
2
⇔
either
3
a
or
2
d
equals
2
. Because
m
and
n
are integers, clearly
3
a
>
2
d
=
2
⇒
d
=
1
Similarly,
3
b
>
2
e
=
2
⇒
e
=
1
Also,
m
i
n
(
3
c
,
2
f
)
=
0
⇒
c
=
0
or
f
=
0
(
∗
)
On the other hand, for
l
c
m
(
m
2
,
n
3
)
=
2
4
⋅
3
4
⋅
5
6
,
m
a
x
(
2
a
,
3
d
)
=
4
Since
3
d
is already
3
, it is obvious
2
a
=
4
or
a
=
2
. Likewise,
b
=
2
Again,
m
a
x
(
2
c
,
3
f
)
=
6
⇔
2
c
=
6
>
3
f
or
3
f
=
6
>
2
c
. Together with the result
(
∗
)
above, we get two possible pairs of
(
c
,
f
)
:
(
3
,
0
)
and
(
0
,
2
)
In conclusion,
2
pairs of
(
m
,
n
)
, which are
(
2
2
⋅
3
2
⋅
5
3
,
2
1
⋅
3
1
⋅
5
0
)
and
(
2
2
⋅
3
2
⋅
5
0
,
2
1
⋅
3
1
⋅
5
2
)
, satisfy the conditions.
Clearly, m and n each have some power of 2 , some power of 3 , and some power of 5 in their prime factorizations. Let m = 2 a ⋅ 3 b ⋅ 5 c and n = 2 x ⋅ 3 y ⋅ 5 z , where a , b , c , x , y , and z are nonnegative integers. From g cd ( 2 3 a ⋅ 3 3 b ⋅ 5 3 c , 2 2 x ⋅ 3 2 y ⋅ 5 2 z ) = 2 2 ⋅ 3 2 , we obtain that min ( 2 3 a , 2 2 x ) = 2 2 , so x = 1 . We also get that y = 1 from min ( 3 3 b , 3 2 y ) = 3 2 . And from min ( 5 3 c , 5 2 z ) = 5 0 , we get that at least one of c and z is 0 .
From lcm ( 2 2 a ⋅ 3 2 b ⋅ 5 2 c , 2 3 x ⋅ 3 3 y ⋅ 5 3 z ) = 2 4 ⋅ 3 4 ⋅ 5 6 , we get that max ( 2 2 a , 2 3 ( 1 ) ) = 2 4 , so a = 2 . Using similar reasoning, we get b = 2 . From max ( 5 2 a , 5 3 b ) = 5 6 , we get that one of 2 a and 3 b is 0 and the other is 6 . There are 2 choices so the answer is 2 .
Since the greatest common divisor does not have a factor of 5 , exactly one of m 2 or n 3 must have a factor of 5 6 and the other has no factors of 5 .
Suppose n = 5 2 k . Then lcm ( m 2 , k 3 ) = 2 4 ⋅ 3 4 and g cd ( m 3 , k 2 ) = 2 2 ⋅ 3 2 . Since the gcd contains a factor of 3, both k and m must contain a factor of 3 . Furthermore, k cannot contain a factor of 3 2 , otherwise g cd ( m 3 , k 2 ) would contain a factor of 3 3 . Using lcm ( m 2 , k 3 ) = 2 4 ⋅ 3 4 , we have 3 2 is the largest factor of 3 dividing m . Similarly, k contains a factor of 2 , but not 2 2 , and the largest factor of 2 dividing m is 2 2 . Therefore, the only solution in this case is m = 2 2 ⋅ 3 2 and k = 2 ⋅ 3 .
Suppose m = 5 3 k . Thus, lcm ( k 2 , n 3 ) = 2 4 ⋅ 3 4 and g cd ( k 3 , n 2 ) = 2 2 ⋅ 3 2 . The argument above also applies to this case, since the conditions are the same with different variables. Then this case has exactly one solution k = 2 2 ⋅ 3 2 and n = 2 ⋅ 3 .
Therefore, there are 2 possibilities.
From question above, we can conclude that there are just 3 prime factors: 2,3, and 5.
So, we can consider m= 2^a.3^a.5^b and n= 2^c.3^c or m= 2^a.3^a and n= 2^c.3^c.5^d.
With a= 2, b= 3, c= 2, and d= 2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
|
1 2 |
|
Clearly, the prime factors of m and n are limited to 2 , 3 , and 5 . Denote m = 2 α 1 3 α 2 5 α 3 and n = 2 β 1 3 β 2 5 β 3 . Then, g c d ( m 3 , n 2 ) = 2 m i n ( 3 α 1 , 2 β 1 ) 3 m i n ( 3 α 2 , 2 β 2 ) 5 m i n ( 3 α 3 , 2 β 3 )
l c m [ m 2 , n 3 ] = 2 m a x ( 2 α 1 , 3 β 1 ) 3 m a x ( 2 α 2 , 3 β 2 ) 5 m a x ( 2 α 3 , 3 β 3 ) .
So, m i n ( 3 α 1 , 2 β 1 ) = 2 . But α 1 a n d β 1 are whole numbers, so it follows that β 1 = 1 . Similarly, m a x ( 2 α 1 , 3 β 1 ) = 4 , s o α 1 = 2 .
We may similarly conclude that β 2 = 1 a n d α 2 = 2 . Now, m i n ( 3 α 3 , 2 β 3 ) = 0 a n d m a x ( 2 α 3 , 3 β 3 ) = 6 , s o ( α 3 , β 3 ) = ( 3 , 0 ) o r ( 0 , 2 ) . These infer that ( m , n ) = ( 4 5 0 0 , 6 ) , ( 3 6 , 6 0 ) .
Hence 2 solutions.
First, we define g c d ( x , y ) and l c m ( x , y ) in terms of the prime factorizations of x and y .
I created a system that follows the logic of least common multiples and greatest common denominators. I don't believe it follows standard set operations, but I found it quite useful. In this method, there may be repeated values in a set. With union operations, the greater number of times the repeat term appears is the number of times it will appear in the result (ex. { 2 , 2 , 2 , 4 , 5 , 5 , 6 } ∪ { 2 , 2 , 4 , 4 , 7 } = { 2 , 2 , 2 , 4 , 4 , 5 , 5 , 6 , 7 } ). With intersection operations, the lesser number of times the repeat term appears is the number of times it will appear in the result (ex. { 2 , 2 , 2 , 4 , 5 , 5 , 6 } ∩ { 2 , 2 , 4 , 4 , 7 } = { 2 , 2 , 4 } ). Also, I use ∼ P a to represent the values not contained in the set P a , where repeated terms repeated more often in the actual set than the "not" set are all moved to the result (ex. { 2 , 2 , 4 , 4 , 7 } ∩ ∼ { 2 , 2 , 2 , 4 , 5 , 5 , 6 } = { 4 , 4 , 7 } ).
Let P x be the set that contains the prime numbers that evenly divide an integer x . I will call this the prime factor set of x . If a prime factorization requires repeated digits, repeat values in the set. The greatest common factor of two numbers x and y will be equivalent to the number whose prime factor set is P x ∩ P y . In other words, once we create this new set, we will find the product of its values.
The least common multiple, then, of the two numbers x and y is the product of the terms of ( ∼ P x ∩ P y ) ∪ P x .
Now we look at the first given, g c d ( m 3 , n 2 ) = 2 2 ⋅ 3 2 . This means that in our previously defined method, P m 3 ∩ P n 2 = { 2 , 2 , 3 , 3 } . Since the intersection operator requires the resulting values to be present in both m 3 and n 2 , we know that both P m and P n must contain at least one 2 and one 3 . However, this makes P m 3 already have 3 of each term, so we know that we must use P n 2 to cap the number of repeats at two. This restricts the value of P n to exactly one 2 and one 3 .
Next, we examine the second bit of information, that l c m ( m 2 , n 3 ) = 2 4 ⋅ 3 4 ⋅ 5 6 . We have already determined that P n contains exactly one 2 and one 3 (corresponding to three of each in P n 3 ), so by our definitions of sets in union, the 2 4 and 3 4 must come from P m 2 . This means P m must contain exactly two 2 s and two 3 s.
We still must account for the 5 6 that remains in the second bit of information. It may be contained in P n 3 or P m 2 , but not both. If a 5 appeared in both in any quantity, then the greatest common divisor would not equal 2 2 ⋅ 3 2 . Note that if the exponent on m or n did not evenly divide the exponent of 5 , we would have to eliminate one or both possibilities. Since both the exponent of m and the exponent of n evenly divide the exponent of 5 , though, we can say there are two possibilities.
We know there are not more than two possibilities. If m or n had a larger exponent of any prime number (or a new prime number altogether) in their prime factorizations, they would affect the least common multiple or greatest common factor outside what we have been told to account for.
Because of g c d ( m 3 , n 2 ) = 2 2 . 3 2 , it follows that for some integers q m , q n :
m 3 = q m . 2 2 . 3 2 ∧ n 2 = q n . 2 2 . 3 2 .
Because both m and n are integers, we deduce that the prime factorisation of q n cannot contain 2 or 3.
Let us suppose it would contain 2 (same argument holds for 3). Because m is an integer, the prime factorisation of q m has to contain 2, since the gcd is taken of m 3 and n 2 . If q m didn't contain 2, m wouldn't be an integer.
This however implies the gcd would contain another factor 2, so it is not possible.
Now looking at the lcm, and because only m can contain more factors 2 and 3 to make the lcm work, we conclude that :
m = q m ′ . 2 2 . 3 2 ∧ n = q n ′ . 2 . 3 ,
for some integers q m ′ , q n ′ , which now both don't contain any factors 2 or 3 anymore.
We only need to figure out what the fives can still do. They are in q m ′ and q n ′ .
There are only two possibilities with the given powers of m and n in the lcm : ( 5 0 , 5 2 ) and ( 5 3 , 5 0 ) for q m ′ , q n ′ respectively.
Problem Loading...
Note Loading...
Set Loading...
Let m = p 1 a 1 p 2 a 2 p 3 a 3 p 4 a 4 … n = p 1 b 1 p 2 b 2 p 3 b 3 p 4 b 4 … where p 1 , p 2 , p 3 , p 4 … are prime numbers 2,3,5,7.....
a 1 , a 2 , a 3 , a 4 … , b 1 , b 2 , b 3 , b 4 … are whole numbers.
Now \gcd(m^3,n^2)=p_1^\min(3a_1,2b_1)p_2^\min(3a_2,2b_2)p_3^\min(3a_3,2b_3)\ldots ⟹ min ( 3 a 1 , 2 b 1 ) = 2 Because 3 a 1 = 2 Therefore 2 b 1 = 2 ⟹ b 1 = 1 Similarly b 2 = 1 , min ( 3 a 3 , 2 b 3 ) = 0 , m i n ( 3 a 4 , 2 b 4 ) = 0 …
Again lcm(m^2,n^3)=p_1^\max(2a_1,3b_1)p_2^\max(2a_2,3b_2)p_3^\max(2a_3,3b_3)\ldots ⟹ max ( 2 a 1 , 3 b 1 ) = 2 Because 3 b 1 = 4 Therefore 2 a 1 = 4 ⟹ a 1 = 2 Similarly a 2 = 2 , max ( 2 a 3 , 3 b 3 ) = 6 , m a x ( 2 a 4 , 3 b 4 ) = 0 …
From above 2 results we get a 4 = a 5 = a 6 = … = b 4 = b 5 = b 6 = … = 0 We also see that if: a 3 = 3 ⟹ b 3 = 0 and if b 3 = 2 ⟹ a 3 = 0
So we get that if:
m = 2 2 3 2 5 3 than n = 2 1 3 1 and if m = 2 2 3 2 than n = 2 1 3 1 5 2
Thus there are 2 ordered pairs (m,n) which satisfy the conditions.