LCM Dilemma

A = lcm ( 1 , 2 , 3 , , 2018 ) B = lcm ( 1010 , 1011 , 1012 , , 2018 ) \begin{aligned} A &= \text{lcm} (1, \, 2, \, 3, \, \dots, \, 2018) \\\\ B &= \text{lcm} (1010, \, 1011, \, 1012, \, \dots, \, 2018) \end{aligned}

Which is true?


Notation: lcm ( ) \text{lcm}(\cdot) denotes the lowest common multiple function.

A > B A > B B > A B > A A = B A = B

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.

9 solutions

Andy Hayes
Mar 7, 2018

What I'm going to show here is that lcm ( 1 , , 2018 ) = lcm ( 1010 , , 2018 ) \text{lcm}(1,\ldots,2018)=\text{lcm}(1010,\ldots,2018) because the numbers { 1 , , 1009 } \{1,\ldots,1009\} don't contribute any factors to the LCM.

Consider the sets C = { 1 , 2 , 3 , , 1009 } C=\{1,2,3, \ldots, 1009\} and D = { 1010 , 1011 , 1012 , , 2018 } . D=\{1010,1011,1012, \ldots, 2018\}.

Claim : Every integer in set C C divides some integer in set D . D.

Proof : Partition set C C as follows:

E = { 1 , 2 , 3 , , 504 } F = { 505 , 506 , 507 , , 1009 } \begin{aligned} E &= \{1,2,3, \ldots, 504\} \\ F &= \{505,506,507, \ldots, 1009\} \\ \end{aligned}

Note that every element in set F F is exactly 1 2 \frac{1}{2} of some element in set D . D. Now partition set E E as follows:

G = { 1 , 2 , 3 , , 252 } H = { 253 , 254 , 255 , , 504 } \begin{aligned} G &= \{1,2,3, \ldots, 252\} \\ H &= \{253,254,255, \ldots, 504\} \\ \end{aligned}

Note that every element in set H H is exactly 1 4 \frac{1}{4} of some element in set D . D.

We can continue partitioning the sets as above indefinitely. However, since there exists a smallest positive integer, 1 , 1, we will eventually have to stop. At that point, we will have established that every integer in set C C divides some integer in set D . D. It then follows that the least common multiples given in the problem are equal.

Unless I'm missing something, the arrays in the quiz go from 1...2018 and 1020...2018

Mike Norris - 3 years, 3 months ago

Log in to reply

Yes, but if you prove that each of the numbers in C = { 1 , , 1009 } C=\{1,\ldots,1009\} divide some number in D = { 1010 , , 2018 } , D=\{1010,\ldots,2018\}, then it follows that lcm ( D ) = lcm ( C D ) . \text{lcm}(D)=\text{lcm}(C \cup D).

If that's confusing, then think in terms of smaller sets. Consider the sets { 3 , 4 , 6 , 8 } \{3,4,6,8\} and { 6 , 8 } . \{6,8\}. If you can show that every number from { 3 , 4 } \{3,4\} divides some number from { 6 , 8 } , \{6,8\}, then it follows that lcm ( 3 , 4 , 6 , 8 ) = lcm ( 6 , 8 ) . \text{lcm}(3,4,6,8)=\text{lcm}(6,8).

Andrew Hayes Staff - 3 years, 2 months ago

I really dont get it. Like for example, 1009 is a prime number. 2018 is 2*1009. But the least common multiple in set A must have 1009 as one of the factors, but for the set in which there is no 1009; we dont need 1009 to be one of the factors.

Hazem Salem - 3 years, 2 months ago

Log in to reply

The second set contains 2018 , 2018, which (as you said) has a factor of 1009. 1009.

If this method is confusing, then think of the same methodology, except with smaller sets. For example, think of the sets { 1 , , 10 } \{1,\ldots,10\} and { 6 , , 10 } . \{6,\ldots,10\}.

To show that lcm ( 1 , , 10 ) = lcm ( 6 , , 10 ) , \text{lcm}(1,\ldots,10)=\text{lcm}(6,\ldots,10), you need to show that every number from { 1 , , 5 } \{1,\ldots,5\} divides some number in { 6 , , 10 } . \{6,\ldots,10\}.

First we have that 3 × 2 1 = 6 , 3 \times 2^1=6, 4 × 2 1 = 8 , 4 \times 2^1 =8, and 5 × 2 1 = 10. 5 \times 2^1 =10. Then we have 2 × 2 2 = 8. 2 \times 2^2=8. Finally we have 1 × 2 3 = 8. 1 \times 2^3=8. We can multiply every number in { 1 , , 5 } \{1,\ldots,5\} by some power of 2 to get a number from { 6 , , 10 } . \{6,\ldots,10\}.

Now once you understand that, you can think of larger sets like { 1 , , 12 } \{1,\ldots,12\} and { 7 , , 12 } . \{7,\ldots,12\}. Eventually it becomes clear that the same methodology to show divisibility works no matter how large the sets are.

Andrew Hayes Staff - 3 years, 2 months ago

Log in to reply

i am sorry, but I am slow. What about 7. you cant get 7 from the first set. For 2018, we don't need to use the factor 1009; we can just use the factor 2. I am so sorry, but i seriously dont get it.

Hazem Salem - 3 years, 2 months ago

Log in to reply

@Hazem Salem But u get a multiple of 7 from the second set!!!

erica phillips - 3 years, 2 months ago

nvm, now i get it

Hazem Salem - 3 years, 2 months ago

did u half the nos. also in set C.And if so what about 1,2,3??

erica phillips - 3 years, 2 months ago

Log in to reply

See my responses to Hazem and Mike below.

Andrew Hayes Staff - 3 years, 2 months ago

Log in to reply

Ok got it!!!So basically if 2 lcm's have to be equal then one set should be atleast a few multiples of the other set.Right???

erica phillips - 3 years, 2 months ago

Log in to reply

@Erica Phillips Yes, exactly. What I showed in my solution is that lcm ( 1 , , 2018 ) = lcm ( 1010 , , 2018 ) \text{lcm}(1,\ldots,2018)=\text{lcm}(1010,\ldots,2018) because the numbers { 1 , , 1009 } \{1,\ldots,1009\} don't contribute any factors to the LCM.

I'll edit my solution to clarify.

Andrew Hayes Staff - 3 years, 2 months ago

Log in to reply

@Andrew Hayes Thanks a lot!!!

erica phillips - 3 years, 2 months ago

Depart the group in half

Crystal Wang - 3 years, 2 months ago

19 is a prime number that doesn't divide any element in B

MegaMoh . - 2 years ago
Arjen Vreugdenhil
Mar 11, 2018

By definition, A n if and only if x n for all x = 1 , 2 , , 2018 ; B n if and only if x n for all x = 1010 , , 2018. A|n \ \ \ \text{if and only if}\ \ \ \ x|n\ \text{for all}\ x = 1,2,\dots,2018; \\ B|n \ \ \ \text{if and only if}\ \ \ \ x|n\ \text{for all}\ x = 1010,\dots,2018.

Since x A x|A for all x = 1 , 2 , , 2018 x = 1, 2, \dots, 2018 , we certainly have that x A x|A for all x = 1010 , , 2018 x = 1010,\dots, 2018 , so that B A \boxed{B|A} .

Now let 1 x 2018 1 \leq x \leq 2018 . There exist a unique integer n 0 n \geq 0 such that 1010 2 n x 2018 1010 \leq 2^nx \leq 2018 . Since x 2 n x x | 2^nx and 2 n x B 2^nx|B we see that x B x|B . Since this is true for all x = 1 , 2 , , 2018 x = 1, 2,\dots, 2018 , we conclude that A B \boxed{A|B} .

From A B A|B and B A B|A it follows that A = B \boxed{A = B} .

But the number 19 is prime and is in A and not in B

MegaMoh . - 2 years ago

From 1216 B 1216|B and 19 1216 19|1216 it follows that 19 B 19|B .

Arjen Vreugdenhil - 2 years ago
David Vreken
Mar 11, 2018

Let C = { 1 , 2 , 3 , , 1009 } C = \{1, 2, 3, \dots, 1009\} and D = { 1010 , 1011 , 1012 , , 2018 } D = \{1010, 1011, 1012, \dots, 2018\} . Then A = lcm ( C D ) A = \text{lcm}(C \cup D) and B = lcm ( D ) B = \text{lcm}(D) .

Since each element in C C multiplied by some power of 2 2 is already found in D D , and D D has at least one even number, C C has no unique factors to D D . Therefore, lcm ( C D ) = lcm ( D ) \text{lcm}(C \cup D) = \text{lcm}(D) , and so A = B A = B .

"Since twice the value of each element in C C is already found in D D ..."

Not true; 500 C 500 \in C but 1000 ∉ D 1000 \not \in D .

Arjen Vreugdenhil - 3 years, 3 months ago

Log in to reply

Thank you! I fixed my solution.

David Vreken - 3 years, 3 months ago

Oh god i read "1 centimeter" i was completely confused

Arthur Medemblik - 3 years, 3 months ago

Log in to reply

I feel you...

Marcelo Carreira - 3 years, 2 months ago

i really dont get it. Like for example, 1009 is a prime number. 2018 is 2*1009. But the least common multiple in set A must have 1009 as one of the factors, but for the set in which there is no 1009; we dont need 1009 to be one of the factors.

Hazem Salem - 3 years, 2 months ago

Log in to reply

We do, because that set contains 2018 = 2 × 1009 2018 = 2\times 1009 .

Arjen Vreugdenhil - 3 years, 2 months ago

Log in to reply

yeah, Mind Fart. Thx

Hazem Salem - 3 years, 2 months ago
Zico Quintina
Mar 13, 2018

It should be intuitively clear that any n n consecutive positive integers must have a multiple of n n among them. However, as a formality, a proof is included at the bottom.

Using this idea, it is immediate that the set B = { 1010 , 1011 , 1012 , , 2018 } B^{*}=\{1010,\,1011,\,1012,\,\dots,\,2018\} , which contains 1009 consecutive positive integers, must contain a multiple of a a for every a A = { 1 , 2 , 3 , , 1009 } a \in A^{*}=\{1,\,2,\,3,\dots,1009\} . Therefore, lcm ( 1 , 2 , 3 , , 2018 ) = lcm ( 1010 , 1011 , 1012 , , 2018 ) \text{lcm}\,(1,\,2,\,3,\dots,2018) = \text{lcm}\,(1010,\,1011,\,1012,\dots,2018) .

Here's the promised proof.

Claim: Every sequence of n n consecutive positive integers contains a multiple of n n .

Proof: Let t t be the largest term in the sequence. If n t n \mid t then we're done.

If not, let t r ( m o d n ) t \equiv r \pmod{n} for some r { 1 , 2 , , n 1 } r \in \{1,\,2,\,\dots, n-1\} . Then t r t-r must be a member of the sequence, and clearly n t r n \mid t-r .

Giorgos K.
Mar 1, 2018

Mathematica

LCM @@ Range@2018 == LCM @@ Range[1010, 2018]

yelds True

Awesome programming, but I think this is a question on math, not programming. I wish I knew how to program that though.

Sophia Cai - 3 years, 2 months ago
Ti Tou
Mar 14, 2018

The greatest prime number with 2018 in both sets is 2017 so A = 2017 × 2018 = B \boxed{A=2017 \times 2018=B}

But how you proved that they are equal

Riya Verma - 3 years, 2 months ago

Log in to reply

Good question!

As I see it, Ti Tou's answer is too simplistic. The fact is that B (1010 - 2018) also contains all primes between 1 - 2010 (part of A), with 1009 being the largest in the latter set. So 2x1009 is 2018 and still in B. The lcm is defined by the number of primes in the list. If B had started from 1014 - 2018 the outcome would be different because then 1013 (prime) would not be in B meaning A > B

Sorry for the messy explanation :)

PJ Van Camp - 3 years, 2 months ago

The difference in the LCM's are caused by the prime numbers in the list. B contains the same prime numbers as A from 1013 to 2017. And if not, the prime numbers appear as factors of other numbers in B. The largest prime number less than 1010 is 1009, and 2 x 1009 = 2018. Therefore, A = B.

Sophia Cai
Mar 16, 2018

The extra numbers of the first set don't put in any extra factors to the LCM. For any number n, there is at least one multiple of n every n numbers. There are 1009 numbers from 1010 to 2018, enough for at least one multiple of each number from 1 to 1009.

Austin Voecks
Mar 15, 2018

Quick Python solution

 from functools import reduce
 from fractions import gcd

 lcm = lambda a, b: a * b // gcd(a, b)

 A = reduce(lcm, range(1,    2019))
 B = reduce(lcm, range(1010, 2019))

 print(A > B)
 print(B > A)
 print(A == B)

Very annoying.... fyi lcm = Least Common Multiple.

Dylan Davis - 3 years, 2 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...