How many ways I can arrange $5$ unique blue books, $5$ unique red books and 5 unique green books so that $2$ blue books are always together?

360 Views Asked by At

how many ways can I arrange $5$ unique blue books, $5$ unique red books, and $5$ unique green books so that at least $2$ blue books are always together?

I thought I had a better grasp of combinatorics, but I've been told my approach is wrong. I see it as having $14$ spots for the books since $1$ spot would be taken by the pair of blue books. So my answer would be $2!\cdot14!$, since the arrangement of the rest of the books is unimportant. I just want the arrangements where $2$ blue books are next to each other. Any leads would be appreciated!

2

There are 2 best solutions below

3
On BEST ANSWER

There are a couple of things wrong with your analysis. First, there are five possible blue books that could be next to each other, so you would need an extra factor of $\binom{5}{2}$ to account for choosing which two they are. More profoundly, though, this will overcount the number of solutions. If there were two pairs of blue books together (or three blue books in a row), they would be counted as two different solutions even though they are the same arrangement.

So, let's follow John's suggestion and count the number of arrangements in which no two blue books are next to each other, and then subtract that from $15!$.

I'll start by putting the green and red books on the bookshelf. Since the books are unique, this can be done in $10!$ ways. This sets up eleven potential places where the blue books can fit (and if the blue books are all in different slots, we are certain they won't be next to each other). We can choose which books go in which slots in $5!\binom{11}{5}$ ways. This gives us a total of $10!\cdot5!\binom{11}{5}$ ways in which you can put the 15 books on the shelf with no blue books next to each other.

2
On

Of course, there are $15!$ arrangements without restrictions. The number of arrangements with no two blue books together can be computed as follows:

  • Choose the locations of the blue books. They define $6$ spaces between and around them; the middle $4$ spaces must contain at least one other book. Thus $6$ extra books remain to be distributed among the $6$ spaces with possibly $0$ extra books in a space, so by stars and bars there are $\binom{6+6-1}6=462$ combinations.
  • Permute the blue and red/green books in their positions; there are $5!10!$ permutations for each combination.

Thus the final answer is $15!-462×5!×10!=1,106,493,696,000$.