document.write( "Question 1107161: There are 4 different mathematics bookd and 5 different science books. In how many ways can the books be arranged on a shelf if
\n" ); document.write( "A. There are no restrictions
\n" ); document.write( "B. Books of the same subject must be placement together
\n" ); document.write( "C. If they must be placed alternately
\n" ); document.write( "

Algebra.Com's Answer #722164 by math_helper(2461)\"\" \"About 
You can put this solution on YOUR website!

\n" ); document.write( "A. There are 9 distinguishable items (books), so they can be arranged in 9! ways. (9 choices for the first book, times 8 for the 2nd book, …, times 2 for the 8th book, times 1 for the 9th book).
\n" ); document.write( "—
\n" ); document.write( "B. Keeping the same subjects together, there are 4! ways to arrange the mathematics books, and 5! ways to arrange the science books. Additionally, you can have the groups themselves arranged two ways (one with math on the left, the other with math books on the right): 4!*5!*2
\n" ); document.write( "—
\n" ); document.write( "C. For this arrangement, the science books need to be on the ends (S-M-S-M-S-M-S-M-S) in order to 'sandwich' the math books. There are 5 places to hold science books and 4 places for math books, so I'd say 5!*4! ways to arrange all the books like this.
\n" ); document.write( "—
\n" ); document.write( "I think this is correct, but another tutor's opinion/verification might be a good idea.
\n" ); document.write( "
\n" );