I have a very simple permutation question that I can't figure out on my own. So, I have
{A, B, C}
and
{D, E, F}
I need to know how many combinations are possible from these, if I must select at least one (but can choose more than one) from each table. For example, it could be (A,D), (AB,D), (ABC,D), (A,DEF)
, etc. (Note that, (AB,D)
would mean the same thing as (BA,D)
.)
For {A,B} {C,D}
, I know it is 9 because I manually wrote all of the possible combinations but I get stuck if its higher than 3,4.
I am trying to figure this out because although I have written code that incorporates all of the combinations I am not sure how many combinations there are. How do you solve this?
The actual tables have:
2 entries, 2 entries, 8 entries, 2 entries, 11 entries respectively. Once I figure out the basics, I will try to apply that on the actual tables.