Unique numbers in two sets of three

  • Context: Undergrad 
  • Thread starter Thread starter Cook_Me_Plox
  • Start date Start date
  • Tags Tags
    Numbers Sets
Click For Summary

Discussion Overview

The discussion revolves around the problem of determining the number of unique numbers that appear when selecting combinations of two sets of three numbers from a defined collection. The sets are constructed under specific constraints, and participants explore whether a general formula can be derived for combinations of sets with varying sizes and ranges.

Discussion Character

  • Exploratory
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant presents a specific case with 10 sets of 3 numbers and notes the counts of unique numbers when combining sets, questioning if a general formula exists for larger combinations.
  • Another participant outlines a method to determine the number of disjoint sets relative to a chosen set, leading to a calculation of combinations, but acknowledges potential double counting.
  • Some participants express skepticism about the possibility of a general formula due to the variability in families of sets that meet the initial conditions.
  • There is a proposal to model the problem using graph theory, specifically referencing the complete graph K5, to simplify the understanding of the combinations of triangles formed by the sets.
  • Further inquiries are made about extending the analysis to combinations involving three or more triangles and the implications for larger complete graphs.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the existence of a general formula for the problem. There are competing views regarding the uniqueness of the sets and the feasibility of deriving a formula applicable to larger combinations.

Contextual Notes

Participants note that the conditions of the sets may lead to different cardinalities of pairwise unions, suggesting that the problem may not have a straightforward solution applicable across all cases.

Cook_Me_Plox
Messages
3
Reaction score
0
Hi, sorry if this is in the wrong section. Some of the stuff in this section is way over my head anyway.

I have 10 sets of 3 numbers ranging from 1 to 10. They are interesting in that each number appears three time, no number appears twice in the same set, and no two numbers appear together in different sets more than once.

{1,2,7}
{1,8,0}
{1,5,6}
{3,7,0}
{5,7,9}
{4,5,0}
{2,3,8}
{2,6,9}
{4,6,8}
{3,4,9}

If you took any combination of two of the sets, how many "unique" numbers would you have? In this case a unique number is just one that appears in the sets, so the first two {1,2,7} and {1,8,0} would have unique numbers {1,2,7,8,0}. As it turns out, of the 45 possible combinations of two sets, 30 contain 5 uniques, and 15 contain 6 uniques. I know this because I simulated it.

My question is, is there any way to tell the number times a certain amount of unique numbers will show up in the set without calculating each combination? 30 and 15 are so...symmetric to 45 that I have to imagine there's some easier way to do this. I know that doing this for combinations of 2 sets of three numbers from 1-10 looks easy (and it is), but I'm hoping that by looking at this, there's a more general formula for which you can determine the amount of uniques with combinations of p sets of q parts up to r. For instance, how many different combinations of 50 sets of 5 numbers ranging from 1-1000 will have exactly 200 unique numbers?

I hope someone can either help me out or point me in the right direction. Many thanks.
 
Last edited:
Physics news on Phys.org
It is not hard to see in this case.

Take an arbitrary set. Let's find the number of sets disjoint with that set.
Let's say our set is {x,y,z}. There are two other sets containing x, these sets are not disjoint with {x,y,z}. Likewise, there are two other sets containing y. And there are two other sets containing z. These sets cannot all be disjoint. So, in particular, there are 7 sets (including {x,y,z}) not disjoint with {x,y,z}. So there are 10-7=3 sets disjoint with {x,y,z}.

From 3 sets, it is possible to pick two sets in 3 different ways. Now, we can do that for every set. There are 10 different sets in total, and 3 sets disjoint with every set. So in total, there are 30 different combinations of disjoint sets.
However, we counted double now. Indeed, if we pick a set {x,y,z} and see that {a,b,c} is disjoint, then this is the same as picking the set {a,b,c} and seeing that {x,y,z} is disjoint. So we counted {x,y,z} and {a,b,c} two times. So we must divide 30 by 2. This gives us 15 combinations of disjoint sets.
 
If there are (essentially) different families of 10 sets 3 satisfying the same conditions, they could have different counts of cardinalities of pairwise unions. So it seems unlikely that a formula can be provided. Or are you claiming that the conditions uniquely determine the family (up to isomorphism)?
 
micromass said:
It is not hard to see in this case.

Take an arbitrary set. Let's find the number of sets disjoint with that set.
Let's say our set is {x,y,z}. There are two other sets containing x, these sets are not disjoint with {x,y,z}. Likewise, there are two other sets containing y. And there are two other sets containing z. These sets cannot all be disjoint. So, in particular, there are 7 sets (including {x,y,z}) not disjoint with {x,y,z}. So there are 10-7=3 sets disjoint with {x,y,z}.

From 3 sets, it is possible to pick two sets in 3 different ways. Now, we can do that for every set. There are 10 different sets in total, and 3 sets disjoint with every set. So in total, there are 30 different combinations of disjoint sets.
However, we counted double now. Indeed, if we pick a set {x,y,z} and see that {a,b,c} is disjoint, then this is the same as picking the set {a,b,c} and seeing that {x,y,z} is disjoint. So we counted {x,y,z} and {a,b,c} two times. So we must divide 30 by 2. This gives us 15 combinations of disjoint sets.

Thank you, that's what I was looking for. I also want to find out if there's a computationally easy way to generalize this for combinations of three or more.

haruspex said:
If there are (essentially) different families of 10 sets 3 satisfying the same conditions, they could have different counts of cardinalities of pairwise unions. So it seems unlikely that a formula can be provided. Or are you claiming that the conditions uniquely determine the family (up to isomorphism)?

The sets were determined by labeling the edges of a 5-vertice complete graph from 1-10 and writing down each set of edges that created a triangle. The actual parts of the set would have differed had I labelled them differently, but they would still essentially be the same.
 
Last edited:
Cook_Me_Plox said:
The sets were determined by labeling the edges of a 5-vertice complete graph from 1-10 and writing down each set of edges that created a triangle.
OK, so the underlying question was in how many ways can you choose two triangles from K5 with no edges in common. That model makes it easier. The following is the same as micromass' logic, but expressed in terms of the K5:
Pick any of the 10 triangles. For the second triangle, you can reuse at most one vertex; but there are only two you haven't used, so you must reuse exactly one. There are three choices for that. Could have picked the two triangles in the other order, 10 * 3 /2 = 15.
 
haruspex said:
OK, so the underlying question was in how many ways can you choose two triangles from K5 with no edges in common. That model makes it easier. The following is the same as micromass' logic, but expressed in terms of the K5:
Pick any of the 10 triangles. For the second triangle, you can reuse at most one vertex; but there are only two you haven't used, so you must reuse exactly one. There are three choices for that. Could have picked the two triangles in the other order, 10 * 3 /2 = 15.

How can I figure that out for three triangles or more? Or for K6 and above? Or for something more complicated than triangles?
 
Cook_Me_Plox said:
How can I figure that out for three triangles or more?
You cannot pick a third triangle edge-disjoint from the first two. Is that what you meant?
Or for K6 and above?
Let's start with asking what is the max number of disjoint triangles that can be found from Kn. For K7, it's 7, and I believe the structure is that of the Fano plane. This suggests to me that a totally general formula is going to be tough.
Dropping back to choosing just two triangles from Kn:
Pick any of the nC3 triangles; there are 3 * n-3C2 ways in which the second triangle shares a vertex with the first, and n-3C3 in which it does not. Summing and halving, I get nC5(n+4)5/3.
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 2 ·
Replies
2
Views
7K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 15 ·
Replies
15
Views
2K