4
$\begingroup$

There are five distinct computer science books, three distinct mathematics books, and two distinct art books. In how many ways can these books be arranged on a shelf if one of the art books is on the left of all computer science book, and the other art book is on the right of all the computer science books?


For my answer I was thinking since there are $10$ books total and $5$ are computer science books, then I could place an art book on the first, second, third, fourth slot ... but I do not know how to finish it, I am sure it has something to do with rule of sum. Any advice appreciated. Thank you.

  • 0
    @Extreme112 ${^{10}\mathrm P_3}$ counts permutations of 3 items selected from 10. $3!$ just counts the permutation of 3 items; you also have to count ways to select them. Thus: ${^{10}\mathrm P_3} = {^{10}\mathrm C_3}\;3!$ ... However, see my answer below as to why the answer is $5!\;2!\;3!\;{^8\mathrm C_3}$.2014-11-25

4 Answers 4

6

You are going in the right direction, but don't think in terms of slots. Just organize the books on the floor, then put them on the shelf.

First, order the computer science books. There are $5!$ ways of putting them in. Then put the two art books on both ends; there are $2$ ways of doing it.

Now you have $7$ books, with eight spaces between and to the left and right of them. We just need to put in the three math books. Let's say they are a Calculus I, a Calculus II, and a Calculus III textbooks.

We put in the Calc I book first. There are 8 places where it can go, relative to the other 7 books. Next, put the Calc II book in; there are 9 places where it can go, relative to the other 8 books that have already been placed. Finally, put in the Calc III book.

  • 0
    @Capriano & `@Fixee `:$^{8}P_3$ is not correct here as it does not take care of the arrangements where two or three distinct distinct mathematics books is together.In other words, there are $^{n}P_r$ ways to distribute $r$ distinct balls into $n$ distinct cells *with at most one ball per cell*.2011-12-02
1

It's unclear (to me) from your question if the first art book must always be on the left and the second art book must always be on the right? Let's assume that's the case.

Order the computer books first. There are $5!$ ways, since they are distinct. Next put the art books on the ends, and there is only one way to do this (because of my assumption above). Finally, there are $3$ math books left with 8 slots to choose from; there are no restrictions on these math books.

You have $8$ choices for the first math book, $9$ for the second, and 10 for the last. So in total,

$ 5! \cdot 8 \cdot 9 \cdot 10 = 86400 $

You should double this if my first assumption is wrong.

  • 0
    Yes you are correct but the answer should be doubled because it doesn't matter which art book goes left or right, just as long as they are not in between computer science books.2011-12-02
0

There are five distinct computer science books, three distinct mathematics books, and two distinct art books. In how many ways can these books be arranged on a shelf if one of the art books is on the left of all computer science book, and the other art book is on the right of all the computer science books?

You want arrangements like _A_C_C_C_C_C_A_, where the 3 math books can be placed in any of these 8 spaces before before, between, and after the art and computer science books. So we count the ways to arrange the books of each type among themselves, then count the ways to place the math books

You also have to account for cases where two or three math books are placed into the one spot (while preserving their already selected order).

$5!\;2!\;3!\;\bigg({^8\mathrm C_3}+2\;{^8\mathrm C_2}+{^8\mathrm C_1}\bigg)$

-1

answer is $2520$

Number of permutations of $n$ things, taken all at a time, in which $p$ are of one type, $q$ of them are of second-type, $r$ of them are of third-type, and rest are all different is given by $ \frac{n!}{p! q! r!} $ so $ \frac{10!}{5! 3! 2!} = 2520 $

  • 0
    This is inaccurate. What you describe are called "distinguishable permutations", and would be accurate **only if** the books of the same type were *identical*.2012-11-02