Combinations and Exclusions
Hi all,
Can anyone help me with this little problem!??
I have a group of four objects A,B,C and D. Dependant on various circumstances, certain pairs of these objects cannot be combined with each other. I need to be able to calculate how many groups (combinations) can be made (of varying numbers) when exclusions are applied.
What I mean is, when there is no exclusions and everything can be combined, I can make the following combination groups:
Singles(4): A, B, C, D
Doubles(6): AB, AC, AD, BC, BD, CD
Trebles(4): ABC, ABD, ACD, BCD
4-Folds(1): ABCD
Now, If say A & B could not be combined in any group then I would be left with:
Singles(4): A, B, C, D
Doubles(5): AC, AD, BC, BD, CD
Trebles(1): ACD, BCD
4-Folds(0):
So, what I am looking for is some equation that takes how mny exclusions I have and then calculates how many combinations within each group I would be left with.
Any help will be appreciated
Thanks
S@NSIS