Find All Integers for Equal Sum Disjoint Union Sets

  • MHB
  • Thread starter lfdahl
  • Start date
  • Tags
    Integers
In summary, the conversation is discussing finding all integers $n$ such that the set of consecutive positive integers up to $n$ can be divided into three subsets $A$, $B$, and $C$ with equal sums of elements. The conclusion is that all non-negative integers that are divisible by 3 satisfy this condition.
  • #1
lfdahl
Gold Member
MHB
749
0
Find all integers $n$ such that the set $\{1,2,3,4, ...,n\}$ can be written as the disjoint union of the subsets $A$ , $B$ , $C$ whose sum of elements are equal.
 
Mathematics news on Phys.org
  • #2
lfdahl said:
Find all integers $n$ such that the set $\{1,2,3,4, ...,n\}$ can be written as the disjoint union of the subsets $A$ , $B$ , $C$ whose sum of elements are equal.
Wouldn't that just be all (non-negative) integers such that n is divisible by 3??

-Dan
 
  • #3
lfdahl said:
Find all integers $n$ such that the set $\{1,2,3,4, ...,n\}$ can be written as the disjoint union of the subsets $A$ , $B$ , $C$ whose sum of elements are equal.

sum of n integers has to be multiple of 3.

So the number of numbers has to be 3n + 3 or 3n + 2

each set can not contain 1 element each then the sum cannot be equal

so start with 5 we have 3 set $5,(1,4),(2,3)$

for 6 we have $(1,6),(2,5),(3,4)$

for 9 (from magic square we get $(2,9,4), (3,5,7), (8,1,6)$

for 8 we have $(8,4), (2,7,3), (1,5,6)$

now for any number of the form $3n + 2 ( n >=4)$ is of the form $9k + 2 ( 9(k-1) + 6 + 5)$ or $9k + 5$ or $9k + 8$

by grouping as above we can get any number of the from 3n + 2 into 3 equal part and of the form 3n into equal parts

so number of the from $3n + 2$ or $3n + 3$ (n >= 1) (same as 3k with k >=2)
 
  • #4
...sum of elements...
Got it now.

-Dan
 
  • #5
Thankyou, kaliprasad, for your participation :cool:

I believe, the suggested solution below is in overall agreement with your considerations:

Since \[\sum_{x\in A}x +\sum_{x\in B}x+ \sum_{x\in C}x = \frac{n(n+1)}{2}\]

the RHS must be divisible by $3$ and therefore $n$ is congruent to one of $0,2,3,5$ modulo $6$.
Now we prove, that if $n$ is congruent to one of $0,2,3,5$ modulo $6$ and $n > 4$, then such a partition exists.

If we can find such partition for some $n$, then we can enlarge it to an admissible partition for $n+6$ by adjoining $n+1$ and $n+6$ to $A$; $n+2$ and $n+5$ to $B$; $n+3$ and $n+4$ to $C$.
For $n = 5,6,8,9$ we have the following partitions:

$n = 5 \;\;\;\;\;\;A = \{1,4\}\;\;\;\;\;\;B=\{2,3\}\;\;\;\;\;\;C = \{5\}$

$n = 6\;\;\;\;\;\;A = \{1,6\}\;\;\;\;\;\;B=\{2,5\}\;\;\;\;\;\;C = \{3,4\}$

$n = 8\;\;\;\;\;\;A = \{1,2,3,6\}\;\;\;\;B=\{5,7\}\;\;\;\;\;C = \{4,8\}$

$n = 9\;\;\;\;\;\;A = \{1,2,3,4,5\}\;\;\;B=\{7,8\}\;\;\;\;\;C = \{6,9\}$

Obviously, for $n \le 4$ such a partition does not exist.
 

FAQ: Find All Integers for Equal Sum Disjoint Union Sets

What is the concept of "Find All Integers for Equal Sum Disjoint Union Sets"?

The concept of "Find All Integers for Equal Sum Disjoint Union Sets" is a mathematical problem where a set of integers is divided into two or more subsets, with each subset having an equal sum. The goal of the problem is to find a set of integers that can be divided into these subsets with equal sums.

What is the importance of solving this problem?

Solving the "Find All Integers for Equal Sum Disjoint Union Sets" problem can have practical applications in various fields such as computer science, data analysis, and economics. It can help in optimizing resource allocation, data organization, and identifying patterns or relationships in data.

How do you approach solving this problem?

The general approach to solving this problem is by using mathematical techniques such as algebraic equations, number theory, and combinatorics. It involves breaking down the problem into smaller sub-problems and finding a solution that satisfies the given conditions.

What are some common challenges faced when solving this problem?

Some common challenges when solving the "Find All Integers for Equal Sum Disjoint Union Sets" problem include finding the right approach to the problem, handling large sets of integers, and ensuring that all possible solutions are considered. The problem can also become more complex when there are additional constraints or conditions given.

Are there any known efficient algorithms for solving this problem?

Yes, there are known algorithms such as the Partition Problem algorithm and the Knapsack Problem algorithm that can be used to find solutions to the "Find All Integers for Equal Sum Disjoint Union Sets" problem efficiently. These algorithms have a time complexity of O(n^2) and O(nW), respectively, where n is the number of integers and W is the total sum of the integers.

Similar threads

Replies
5
Views
2K
Replies
2
Views
1K
Replies
17
Views
2K
Replies
1
Views
915
Replies
1
Views
893
Replies
11
Views
1K
Replies
5
Views
2K
Replies
1
Views
1K
Back
Top