Question : There are $10$ different books on a shelf. Four of them are red and the other six are black. How many different arrangements of these books are possible if no two red books may be next to each other?
So what I have done is
1) The # of ways to range the black books $= 6!$
2) So two red books can't be placed together $= 6! \cdot \frac{7!}{3!} = 604 800$
3) I am kind of confused right now. I don't know what I should subtract $604~800$ from.
Thank you!
This is a perfect problem to solve with stars and bars.
We have to place 6 black books in total. We can treat the red books as "dividers", and if we do that, the problem becomes how many ways are there to rearrange (*'s are black books, |'s are red)
However, to enforce that no two red books touch, we have to place 1 book in between 3 of the dividers. So, we only have 3 black books that we have to place
So, our answer, if the books are indistinguishable, is $${7\choose3}=\color{red}{35}$$
Now, as you note, the books are different. So, we multiply by the number of arrangements of red books and black books.
So, our final answer is $$35\cdot6!\cdot4!=\color{red}{604,800}$$