[Math] Nonempty collection of letters formed by four A’s and eight B’s

combinatorics

Question: How many nonempty collections of letters can be formed from four As and eight Bs?

We can make collections of letters with a maximum of 12 letter since $4+8=12$.

We can split the problem into cases of collections of letters containing $1$ letter to $12$ letters.

For 1 letter: either an A or a B: 2 collections

For 2 letters: AA,BB,AB: 3 collections

For 3 letters: (2A,1B),(1A,2B),(3A),(3B): 4 collections

For 4 letters: This is where I get stuck

My attempt at 4 letters: (4A,0B),(3A,1B),(2A,2B),(1A,3B),(0A,4B): 5 collections

If anyone can help me with 4 letters up to 12 letters.

Completed Answer:

For 5 letters: (5B,0A),(4B,1A),(3B,2A),(2B,3A),(1B,4A): 5 ways

For 6 letters: (6B,0A),(5B,3A),(4B,2A),(3B,3A),(2B,4A): 5 ways

For 7 letters: (7,0),(6,1),(5,2),(4,3),(3,4): 5 ways

For 8 letters: (8,0),(7,1),(6,2),(5,3),(4,4): 5 ways

For 9 letters: (8,1),(7,2),(6,3),(5,4): 4 ways

For 10 letters: (8,2),(7,3),(6,4): 3 ways

For 11 letters: (8,3),(7,4): 2 ways

For 12 letters: (8,4): 1 way

Adding these up,

$$2+3+4+5\times{5}+4+3+2+1 = 44 \text{collections of letters} $$

Best Answer

Using Combinatorics, if all A's and B's were different:

You can choose either 0 A in C(4,0), 1 A in C(4,1), 2 A's in C(4,2), 3 A's in C(4,3) and 4 A's in C(4,4) ways. So, total no. of ways of choosing A's is C(4,0)+C(4,1)+C(4,2)+C(4,3)+C(4,4)=$2^4$ ways.
Similarly you can choose 0 or 1 or 2 or 3...till 8 B's in C(8,0),C(8,1)+...C(8,8)=$2^8$ ways.
So, total no of collections possible are $2^4$*$2^8$.

Now, we have also included a possibility of choosing 0 A's and 0 B's which must be eliminated as it will give you an empty collection. After subtracting this particular case, we finally get $2^4$*$2^8$-1 collections.

But this is not the case. All A's and all B's are alike respectively.
So, your individual counting method seems correct. But you could have got answer directly by:

Selecting a no. of A's from 0 through 4 and no. of B's from 0 through 8 so that you have 5 and 9 choices for A and b respectively giving a total of 9*5=45 choices. Subtract 1 for 0 A and 0 B case. This gives 45-1=44 collections.

Related Question