LCM is a Million

Find the number of distinct ordered pairs of positive integers ( x , y ) (x, y) such that the least common multiple of x x and y y is one million.


The answer is 169.

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.

1 solution

Mahdi Raza
Apr 23, 2020

Let the two numbers be x x , y y . We know that 1 , 000 , 000 = 2 6 5 6 1,000,000 = 2^6 \cdot 5^6 . To make the LCM, either of x x or y y must be 2 6 2^6 and the same goes for 5 6 5^6 . We can make 3 cases and see as below:

\[\begin{array}{|c|c|} \hline \\ \text{Power of 2 in } x & \text{Power of 2 in } y \\ \hline \\ 6& 5,4,3,2,1,0 \\ \\ 5,4,3,2,1,0&6 \\ \\ 6&6 \\ \hline

\end{array}

\implies \lbrace{\text{13 Options}}

\quad \quad

\begin{array}{|c|c|} \hline \\ \text{Power of 5 in } x & \text{Power of 5 in } y \\ \hline \\ 6& 5,4,3,2,1,0 \\ \\ 5,4,3,2,1,0&6 \\ \\ 6&6 \\ \hline

\end{array}

\implies \lbrace{\text{13 Options}}\]

Since there are 13 options to choose for power of 2, and 13 options to choose for power 5, the total options are 13 × 13 = 169 13 \times 13 = \boxed{169}


Bonus: For any given (LCM = p 1 a 1 p 2 a 2 p n a n = p_{1}^{a_{1}} \cdot p_{2}^{a_{2}} \cdots p_{n}^{a_{n}} ), the unique number of pairings = ( 2 a 1 + 1 ) ( 2 a 2 + 1 ) ( 2 a n + 1 ) \bigg(2a_{1} + 1\bigg)\cdot\bigg(2a_{2} + 1\bigg)\cdots \cdot\bigg(2a_{n} + 1\bigg)

Nice solution, and nice (bonus) generalization!

David Vreken - 1 year, 1 month ago

Log in to reply

Thank you @David Vreken

Mahdi Raza - 1 year, 1 month ago

You've added variables a a and b b without specifying what they mean. And the meaning seems to change.

Richard Desper - 1 year, 1 month ago

Log in to reply

Ohh right, i had used a and b when i wrote my solution first, then noticed that the problem specified x and y. And maybe i forget to replace that at one point. Sorry for any confusion!

Mahdi Raza - 1 year, 1 month ago

Log in to reply

Thanks for the fix! Looks much better now.

Richard Desper - 1 year, 1 month ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...