Let's say you have two boxes, each with the letters A and B in them. You pick one letter from each box - have a total of four combinations (AA, AB, BA, BB). But, let's say you only want unique combinations (order does not matter), so there are really only 3 combinations (AB and BA are the same).
You can do the same with two boxes with the letters A, B and C in them. There are 9 total combinations, but only 6 unique combinations.
Is there a general way to figure this out regardless of the number of boxes or letters in the boxes?
2007-10-05
03:35:52
·
3 answers
·
asked by
mathpuzzle
2
in
Science & Mathematics
➔ Mathematics
Swamy - Neither the combinations nor permutations equations work for the above examples
2007-10-05
03:53:45 ·
update #1
I think this is the answer I'm looking for:
b= number of boxes
k = number of letters
(b+k-2)C(k-2) + (b+k-2)C(k-1)
where C is the choose/combination function.
Is that correct?
2007-10-05
07:43:44 ·
update #2