Zackary G.
asked 09/10/22Total Possible Combinations Of Mostly Unique Sets
Given X sets of N numbers if at least one number of each set must be unique what is the total number of possible of combinations? First set starts at 1, each sequential number is multiplied by 2 and each sequential set is 10*previous set.
Example, 3 sets, 5 numbers. X=3, N=5
Set 1 [1,2,4,8,16]
Set 2 [10,20,40,80,160]
Set 3 [100,200,400,800,1600]
Example combinations.
[1,2,4,8,160] [1,2,40,80,160] [1,200,40,8,1600]
good(at least one non matching number)
[1,2,4,8,160] [10,20,40,80,160]
bad(already generated/0 non matching numbers)
In plain English, at least one of the numbers must be different than any other set. I need to know what the formula would be to determine how many possible sets there are matching this criteria. I know that X=5 & N=5 = 2592.
I'm new to learning about combinatorics and I'm sure I'll understand how to figure this out eventually but I need an answer sooner rather than later so any help is appreciated, especially a specific formula I can use. Thank you! :)
1 Expert Answer
Chain L. answered 09/27/22
Learn Math Intuitively and Visually
Note: I am assuming all X sets are mutually exclusive as in the example. This math only works for X mutually exclusive sets.
(x)(x+1)(x+2)(x+3)(x+4)/n! = 126 - 5 identies sets = 121 for x = 5 && n = 5
Let's first start with x = 5 n = 1
1
2
3
4
5
Are all possibilities so the formula is 5/1! = 5 but all 5 are idendities so 0 unique sets
The formula expands are you go up in n so x = 5 n = 2 is
(x)(x+1)/2! = 15
55 54 53 52 51 44 43 42 41 33 32 31 22 21 11 = 15 members. - 5 identities = 10 unique members
There is no closed form formula but you generate the formula based on the pattern
for x =5 and n = 3
x(x+1)(x+2)/3! = 35 -5 = 30 unique members
this works for any x and n, just see there are n terms in numerator
for x =3 and n = 5
(x)(x+1)(x+2)(x+3)(x+4)/5!= 168 - 5 = 163 unique members ( we dont count 11111 22222 33333 44444 55555)
How to count these sets?
Lets represent a unique set.
22345 - means we first pick from set 2, then set 2 again then set 3 then set 4 then set 5
But this is a problem because
54322 is the same set as before just different ordering
So count like this
54322 --> every digit must be >= to the one after it. This makes sure you only count each representation once
5
4
3
2
1
55 44 33 22 11
54 43 32 21
53 42 31
52 41
51
From there you can get the basis for understanding how the formula works
Zackary G.
I don't think this is what I'm looking for, in what I'm trying to describe if X=5 & N=2 then unique sets = 25. Only 1 number must be unique for the set and N = numbers per set. I'm worried I may be wording it incorrectly. Given X sets of N numbers per set where the order does matter how many permutations are possible? I'm not sure that X5,N5=2592 as I originally stated, I may have been wrong. Note below how 1-10,000 are interchangeable as are 2-20,000 however 1&2, 1&20, 10&20, etc. are not. This is what I'm looking for. N=2 is easy to list out manually but N>2 is much more time consuming, that's why a formula would be helpful if it's possible, thanks again. In practice. X(sets)=5 N(numbers)=2 permutations=25 [1, 2] [10, 20] [100, 200] [1000, 2000] [10000, 20000] [1,2] [1, 20] [1, 200] [1, 2000] [1, 20000] [10, 2] [10, 20] [10, 200] [10, 2000] [10, 20000] [100, 2] [100, 20] [100, 200] [100, 2000] [100, 20000] [1000, 2] [1000, 20] [1000, 200] [1000, 2000] [1000, 20000] [10000, 2] [10000, 20] [10000, 200] [10000, 2000] [10000, 20000]09/28/22
Still looking for help? Get the right answer, fast.
Get a free answer to a quick problem.
Most questions answered within 4 hours.
OR
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.
Zackary G.
After some manual testing in C++ I've come up with some figures but I still can't work out a formula. XINF N1=1| X2 N2=4| X2 N3=9| X2 N4=16| X2 N5=25| X2 N6=36| X3 N2= 8| X3 N3=27| X3 N4=64| X3 N5=125| X3 N6=216| X4 N2=16| X4 N3=75| X4 N4=237| X4 N5=583| X4 N6=1218| X5 N2=32| X5 N3=196| I hope this helps!09/29/22