SOLUTION: On a library shelf there are 7 different science books and 5 different math books. Find the number of ways to arrange the books next to each other on the shelf if no two math boo

Algebra ->  Probability-and-statistics -> SOLUTION: On a library shelf there are 7 different science books and 5 different math books. Find the number of ways to arrange the books next to each other on the shelf if no two math boo      Log On


   



Question 1208407: On a library shelf there are 7 different science books and 5 different math books.
Find the number of ways to arrange the books next to each other on the shelf
if no two math books are next to each other.

Answer by ikleyn(52775) About Me  (Show Source):
You can put this solution on YOUR website!
.
On a library shelf there are 7 different science books and 5 different math books.
Find the number of ways to arrange the books next to each other on the shelf
if no two math books are next to each other.
~~~~~~~~~~~~~~~~~~~

With 7 Science book on the bookshelf, we have 6 + 1 + 1 = 8 possible positions for the Math books
(6 positions between the Science books, one position on the left and one position on the right).


So, the number of all different placements of 5 different Math books is  

    C%5B8%5D%5E5 = %288%2A7%2A6%29%2F%281%2A2%2A3%29 = 8*7 = 56.


We should multiply it by  7! = 1*2*3*4*5*6*7 = 5040 (the number of permutations of 7 Science books)
and by 5! = 120 (the number of permutations of 4 Math books).


So, the final answer is  56*5040*120 = 33,868,800.

Solved.

-----------------

This problem is a TWIN to the other similar problem which I solved here at the forum yesterday under this link

https://www.algebra.com/algebra/homework/Permutations/Permutations.faq.question.1208392.html