document.write( "Question 1102309: 2 math books,4 science books and 3 literature books are to be arranged on a shelf. In how many ways can this be done if the 2 math books are not together? \n" ); document.write( "
Algebra.Com's Answer #717189 by math_helper(2461)\"\" \"About 
You can put this solution on YOUR website!
Ignoring the math book restriction, there are 9! = 362880 unique ways of arranging the books.
\n" ); document.write( "Now we need to divide that by the number of arrangements where the two math books are together:
\n" ); document.write( "There are 8 ways for m1m2 to appear and 8 ways for m2m1 to appear, so we need to divide by 16:\r
\n" ); document.write( "\n" ); document.write( "362880/16 = \"+highlight%2822680%29+\"
\n" ); document.write( "—
\n" ); document.write( "EDIT 11/25: Yes, my answer over-deducts (i.e. dividing by 16 takes out too many arrangements) for the M1M2, M2M1 cases. 9! - 2*8! removes the arrangements properly for M1M2 & M2M1 together. [ If I had sanity-checked my answer I'd have seen that it is way too small. ]
\n" ); document.write( "
\n" ); document.write( "
\n" );