Products of Partitions

True or False?

It is possible to partition the set of the first 2026 positive integers { 1 , 2 , 3 , , 2026 } \{1, 2, 3, \dots, 2026\} into exactly two subsets such that the product of all the elements in each subset is the same.


Note: 2027 is a prime number.

True False

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.

19 solutions

Tung Phung
Aug 20, 2017

The answer is False.

Let's call these 2 subsets A and B.

For any prime number x such that x > 1013: If x is in subset A, then we have no way to form subset B so that product of B is divisible by x, because no number in range [1, 2026] is divisible by x except x itself (recall x is prime and x > 1013).

So we have product of A is divisible by x when product of B is not.

Moderator note:

As Kyle Coughlin points out in the comments, this argument relies on Bertrand's postulate , that

For every positive integer n > 1 n > 1 there exists at least one prime p p such that n < p < 2 n . n<p<2n .

A very slight tweak results in an unsolved problem; in fact, one of the most famous of all unsolved number theory problems.

Legendre's conjecture :

For every positive integer n > 1 n > 1 there exists at least one prime p p such that n 2 < p < ( n + 1 ) 2 . n^2<p<(n+1)^2 .

Also note that, by Bertrand's postulate, there exists at least one prime such that 1013 < p < 2016 1013<p<2016 , so there is guaranteed to be a prime that follows the above argument.

Kyle Coughlin - 3 years, 9 months ago

Call a a to the product i A i \prod _{i \in A} i and b b to i B i \prod _{i \in B} i . In the prime decomposition of a a and b b , for any prime p p , the sum of the multiplicities must be even. So, if 13 A 13 \in A , then 2197 = 1 3 3 B 2197 = 13^3 \in B , but this is false, hence there is no partition as the required.

A Former Brilliant Member - 3 years, 9 months ago

Although 1013 is prime, equality is obtained by 2, 1013 in one subset and 2016 in the other.However, 1019 is prime. It can only be in one subset, the other cannot have 1019 as a factor because 2038 > 2016. So equal products not possible

Peter Dickinson - 3 years, 9 months ago

In short, as long as it holds a multiplier factor of a prime number on one subset (subset A), it is certain that there will be no divisor on another subset (subset B) of equal value to that prime number even by utilizing the multiplication of several numbers on another subset (Subset B), because the nature of prime numbers can only be divided by itself.

Thus, it is certain that the multiplication of the numbered members of each subset (subset A and subset B) will never be the same.

Note: Members of subset A or subset B can be random, not necessarily 1 S u b s e t A 1013 1 \leq Subset A \leq 1013 and 1014 S u b s e t B 2026 1014 \leq Subset B \leq 2026 , which needs is guaranteed only that in a subset must be found at least one prime number

Alimun Bidati Sudur - 3 years, 9 months ago
Arjen Vreugdenhil
Aug 20, 2017

Let 1014 p 2026 1014 \leq p \leq 2026 be a prime number, and X p X \ni p and Y ∌ p Y \not \ni p the two subsets.

Clearly, p X p\ |\ \prod X . However, since no higher multiple of p p is contained in the original set, p ∤ Y p\ \not|\ \prod Y .

Thus X Y \prod X \not= \prod Y .

Alternative solution 1

Choose a prime number just above 2026 45 \sqrt{2026} \approx 45 : an easy choice is p = 47 p = 47 . Now 43 × 47 = 4 5 2 2 2 = 2021 43\times 47 = 45^2 - 2^2 = 2021 ; it is clear that there are precisely 43 43 multiples of 47 47 in our set, and no multiples of 4 7 2 47^2 . Thus there are an odd number (43) of prime factor 47 to distribute equally over two sets, an impossibility.

Arjen Vreugdenhil - 3 years, 9 months ago

Alternative solution 2

We can also start with the smaller primes.

Lemma : In the prime factor decomposition of N ! N! , N ! = 2 e 2 3 e 3 5 e 5 , N! = 2^{e_2}\cdot 3^{e_3}\cdot 5^{e_5}\cdots, the exponents are equal to e p = N σ p ( N ) p 1 , e_p = \frac{N - \sigma_p(N)}{p - 1}, where σ p ( N ) \sigma_p(N) is the sum of the digits of the base- p p representation of N N .

If any of the e p e_p is odd for N = 2026 N = 2026 , i.e. if any of the σ p ( 2026 ) \sigma_p(2026) is odd, these prime factors cannot be evenly distributed over two sets.

Now 202 6 10 = 111 1110 101 0 2 2026_{10} = 111\:1110\:1010_2 , making σ 2 ( 2026 ) = 8 \sigma_2(2026) = 8 and e 2 = 2018 e_2 = 2018 , even.

And 202 6 10 = 221000 1 3 2026_{10} = 2210001_3 , so that σ 3 ( 2026 ) = 6 \sigma_3(2026) = 6 and e 3 = 1010 e_3 = 1010 , even.

But 202 6 5 = 3110 1 5 2026_5 = 31101_5 , making σ 5 ( 2026 ) = 6 \sigma_5(2026) = 6 and e 5 = 505 e_5 = 505 , odd. Therefore we conclude that the partition cannot be made.

Arjen Vreugdenhil - 3 years, 9 months ago

Log in to reply

Hi, Arjen The highest power of 5 to divide 2026! Is 5^505 You have missed a 1 from the units column of base 5 number, so digit sum is 6 2026-6 = 2020, Then you must divide by 4 (=5-1) Try it with 10! to see the need to divide by base-1

Samir Betmouni - 3 years, 9 months ago

Log in to reply

You are right, and I'll update my answer.

Arjen Vreugdenhil - 3 years, 9 months ago

It's based on an assumption that this prime exists.

Jinyuan WANG - 3 years, 9 months ago

Log in to reply

It does, doesn't it? An example is 1033 1033 . It is an odd number of the form 4 k + 1 4k+1 , can be written as the sum of two squares ( 3 2 2 + 3 2 32^2 + 3^2 ), and in a unique way (we only need to check 2 3 2 = 529 23^2 = 529 to 3 1 2 = 961 31^2 = 961 , and save work by realizing that squares can only end in 1 , 4 , 5 , 6 , 9 , 0 1,4,5,6,9,0 , and the only ways to have final digit 3 are 4 + 9 4 + 9 or 5 + 6 5 +6 ). This proves that it is prime.

Arjen Vreugdenhil - 3 years, 9 months ago

Log in to reply

I think what he was going for here (why he picked 1014) is that he is using the weak version of Bertrand's Postulate, namely, that there exists a prime between n and 2n+1 for all n. This allows his argument to be easily extended to larger numbers. https://en.wikipedia.org/wiki/Bertrand%27s_postulate

Isaac Browne - 3 years, 9 months ago
Steven Yuan
Aug 7, 2017

Suppose that it is possible to partition the integers in such a way. Let X , Y X, Y be sets such that X Y = { 1 , 2 , 3 , , 2026 } X \cup Y = \{1, 2, 3, \dots, 2026\} and X Y = . X \cap Y = \emptyset. Let P ( X ) , P ( Y ) P(X), P(Y) denote the products of the numbers in X , Y , X, Y, respectively.

X , Y X, Y contain only integers, so P ( X ) , P ( Y ) P(X), P(Y) are integers. Also note that P ( X ) P ( Y ) = 2026 ! , P(X)P(Y) = 2026!, since all the integers from 1 to 2026 inclusive are contained within X , Y . X, Y.

We assume, for the sake of contradiction, that P ( X ) = P ( Y ) . P(X) = P(Y). Hence, by Wilson's Theorem, we have

P ( X ) 2 P ( X ) P ( Y ) 2026 ! ( 2027 1 ) ! 1 ( m o d 2027 ) . P(X)^2 \equiv P(X)P(Y) \equiv 2026! \equiv (2027 - 1)! \equiv -1 \! \! \! \! \pmod{2027}.

This means 2027 P ( X ) 2 + 1. 2027|P(X)^2 + 1. However, we know that if an odd prime number p p divides x 2 + 1 x^2 + 1 for some positive integer x , x, then p p must be of the form 4 k + 1. 4k + 1. The prime number 2027 2027 is of the form 4 k + 3 , 4k + 3, so it can't possibly divide P ( X ) 2 + 1. P(X)^2 + 1.

Therefore, we have reached a contradiction, so we conclude that the statement is false : there is no way to partition the first 2026 positive integers into two sets such that the products of the elements of both sets are equal. \blacksquare

Generalization: Let p p be a prime of the form 4 k + 3. 4k + 3. Then, it is impossible to divide a set of p 1 p-1 consecutive positive integers into two subsets such that the product of the integers in both sets are equal.

A much quicker way is to consider the primes. Since 1997 is prime and we do not have 3994, hence we cannot split the product.

For the generalization, It's easier to use bertrand's postulate directly, to show that there is a prime between n n and 2 n 2n , hence we cannot split the products.

Calvin Lin Staff - 3 years, 10 months ago

"However, we know that if a prime number p p divides x 2 + 1 x^2 + 1 for some positive integer then must be of the form 4 k + 1 4k + 1 ."

This is not true: take x = 1 x = 1 and p = 2 p = 2 .

Arjen Vreugdenhil - 3 years, 9 months ago

Log in to reply

Thanks for pointing that out. Any odd prime factor of x 2 + 1 x^2 + 1 must be of the form 4 k + 1. 4k + 1. . I have updated my solution.

Steven Yuan - 3 years, 9 months ago

There is a total of 1013 odd numbers at the start. No matter how partitioned, there would be one subset with an odd number of odd numbers and one with an even number of odd numbers, so one has to be even and the other odd. Not equal!

T Sullivan - 3 years, 9 months ago

Log in to reply

That argument would work when working with the sum , but this problem is about a product .

For instance, 8 × 3 × 5 = 2 × 4 × 15 8 \times 3\times 5 = 2\times 4 \times 15 , even though the first product has two odd factors and the second product has only one.

Arjen Vreugdenhil - 3 years, 9 months ago

All this is pretty deep for me, but if you just takproducts 1-4 and try to split them into equal subsets ,you can't do it

David May - 3 years, 9 months ago

Seems to be asking if a factorial can be a square number - or can we prove a factorial cant be a square number

R Price - 3 years, 9 months ago

Log in to reply

It is not the same.

If a partition like this exists for { 1 , , N } \{1,\dots,N\} , then N ! N! is a square.

However, if N ! N! is a square, then this kind of partition does not necessarily exist.

Example: the product of { 6 , 10 , 15 } \{6,10,15\} is a square, yet one cannot partition this set into two subsets of equal product.

Arjen Vreugdenhil - 3 years, 9 months ago
Qi Huan Tan
Aug 21, 2017

Note that 2017 is a prime and 2017 only appears once in the prime factorization of 2026 ! 2026! . Hence, 2017 will appear in exactly one of the two subsets. Therefore, such partition is impossible.

Hi Qi,

That is really neat! I think you could improve your answer by including the fact that you are using the unique prime factorisation theorem (aka fundamental theorem of arithmetic).

Peter Macgregor - 3 years, 9 months ago

This is exactly what I thought of, seemed to simple but was correct

Alexander Chang - 3 years, 9 months ago
Graham Wilman
Aug 25, 2017

Let the set be split at some number n. So, the product of one subset is n! And the product of the other is (2026! / n!).

For these to be equal n! = 2026!/n! => n!.n! = 2026!

But n!.n! = (n2)!

Thus n would have to be equal to sqt (2026)

Since sqt (2026) is not an integer it cannot be a member of the original set. Do the statement is false.

Pablo A. Barros
Aug 22, 2017

It is false. Note that 1997 1997 is prime and 1997 2026 ! 1997 \mid 2026! , but 199 7 2 2026 ! 1997^2 \nmid 2026! . So, only one of the subsets would have a factor 1997 1997 , then the products cannot be equal.

Syrous Marivani
Aug 24, 2017

2027 \sqrt{2027} < 46, dividing 2027 by the primes less than 46, reveals that p = 2027 is not divisible by any of them. So, by the Sieve of Eratosthenes, p is a prime. By Wilson's Theorem which says p is a prime if and only if (p - 1)! is congruent to -1 (mod p). So 2026! is congruent to -1(mod 2027). If 2026! = x 2 x^{2} , then x 2 x^{2} is congruent to -1(mod p). Then by Quadratic Residue Properties the Legendre symbol (-1/p) = 1. But we know from Number Theory (-1/p) = ( 1 ) ( p 1 ) / 2 (-1)^{(p - 1)/2} . So letting p = 2027, then (-1/p) = ( 1 ) 1013 (-1)^{1013} = -1, which is a contradiction, so (p - 1)! can not be a complete square.

Jason Martin
Aug 23, 2017

Set p = 2027 p=2027 . If such a partition exists with their common product being A A , then we have A 2 ( p 1 ) ! 1 m o d p A^2 \equiv (p-1)! \equiv -1\mod p , contradicting the fact that 1 -1 is a quadratic nonresidue since p 3 m o d 4 p \equiv 3 \mod 4 .

can you explain this residue thing in detail.

Sunil Nandella - 3 years, 9 months ago

Log in to reply

See Quadratic residues .

Pi Han Goh - 3 years, 9 months ago

A quadratic residue a a is a value such that for some x x , we have x 2 a m o d p x^2 \equiv a \mod p . By the first supplement of Quadratic Reciprocity, 1 -1 is a quadratic residue modulo p p if and only if p 1 m o d 4 p\equiv 1 \mod 4 . Our p 3 m o d 4 p \equiv 3 \mod 4 , so 1 -1 is not a quadratic residue (i.e. it's a quadratic nonresidue). Yet, if a common product A A existed, we get A 2 1 m o d p A^2 \equiv -1 \mod p , which is a contradiction.

Jason Martin - 1 year, 6 months ago
Robert DeLisle
Aug 23, 2017

Every number has a unique prime factorization. The products of the two partitions therefore must have a 1-1 correspondence between their prime factors.. There are primes between 1014 and 2026. These primes can appear as a factor only once, on their initial occurrence, since their smallest composite number containing such a prime, the multiple by 2, will be larger than 2026. Once one of these primes is assigned to a partition, there can be no corresponding prime in the other partition, thus that products of the two partitions cannot have the same prime factorization, and thus cannot be equal.

Dave Clarke
Aug 21, 2017

If all the numbers in the original set of 2016 were expressed as products of primes the idea is to have the same number of each prime represented in the prime product chain of each of the two sectioned sets. However, the prime 47 would appear 43 times and, 43 being an odd number, this means there cannot be a sectioning off to include the same number of 47s in each set.

Let's take the sun off the numbers up to 2026. One good mathematician have is that the sun off numbers up to n is (n+1)*n/2. For the sun up to 2026, this is 2053351. You might notice this is an odd number, which means it cannot be broken into two equal subsets. Therefore this doesn't work.

No, you read the question wrongly. The questions asked whether we can partition these integers into 2 sets such that the product (NOT SUM) of elements of each sets are equal.

Pi Han Goh - 3 years, 9 months ago
Sulayman Hussain
Aug 25, 2017

Not sure if this is right so would appreciate input:

In the set [1,2,3,4,5...k...2026]

Is there somewhere a k such that k! =? 2026! / k! k! * k! =? 2026!

Well there is a prime number "2026" in 2026! which certainly won't be a factor of k! * k! .Both k are smaller than 2026 and that 2026 can only be made by multiplying it and 1. Therefore the two sides of the expression are unequal. Therefore our original statement that there is such a k that can split this set such that both subsets have the same product is false.

Is it generally possible to split sets ending with prime numbers into smaller sets with the same products? (I think this proof suggests otherwise)

Not sure, but would appreciate feedback!

Jim Orlin
Aug 25, 2017

2017 is a prime number. (Perhaps that was intended to be the hint.) Let A and B be the products of the two subsets. Then A or B is divisible by 2017, but not both.

Wonderful! Cleanest solution here.

Pi Han Goh - 3 years, 9 months ago
Corwin Silverman
Aug 24, 2017

If the sets had the same product, they could multiply to 2026!, and this value would need to be a square number. If there is one prime number greater than 2026/2, then there is a prime factor that appears an odd number of times. 2017 is prime, so 2026! is not a square number.

Jonathan Drucker
Aug 23, 2017

The highest prime less than 2026 has to go in one group or the other

2017 is not only the current year, but also a prime that makes the statement false. If it belongs to the set A, it will not divide the product of the set B as none of its element is divisible by 2017.

Arthur Conmy
Aug 21, 2017

Call the product in the question P P .

Then P 2 = 2026 ! P^2=2026! , but there are no factorials n ! n! with n > 1 n>1 that are perfect squares, a simple statement with more complex proof: see the problem on https://brilliant.org/wiki/distribution-of-primes/#bertrands-postulate.

Therefore there exists no P P , and therefore the answer is False.

Shwet Ranjan
Aug 21, 2017

The answer is false.

Let's say you want to segregate the integers into two groups.

Both should contain the same number of 7.

But you have an only odd number of 7, which we can't put into two group.

Number of 7 - { 2026 7 \frac{2026}{7} + 2026 7 2 \frac{2026}{7^2} + 2026 7 3 \frac{2026}{7^3} + 2026 7 4 \frac{2026}{7^4} }=289+41+5=335

You can also check for 5. But it will be a little longer. And check for 11, you can make it short.

It is False.

Suppose to have 2 partition A and C of the set E, if the sum of A is equals to the sum of C then the sum of every element of the set E must be disabled by 2.

E = {1.. 2026}

So the sum of E is

SE = 2027*2026/2

Which is not divisible by 2 because 2027 is prime and 1013 is not divisible by 2.

The problem was asking about the product of the numbers in each set, not the sum.

Steven Yuan - 3 years, 9 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...