document.write( "Question 1174094: In how many 7 children can be arranged in a line, such that two particular children of them are never together?
\n" ); document.write( "a. 360
\n" ); document.write( "b. 480
\n" ); document.write( "c. 720
\n" ); document.write( "d. 1440
\n" ); document.write( "

Algebra.Com's Answer #799458 by math_tutor2020(3817)\"\" \"About 
You can put this solution on YOUR website!

\n" ); document.write( "Label the chidren as A,B,C,D,E,F,G\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Let's say we want child A and child B to never be sitting together. That's the ultimate goal that we'll aim for.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "However, for now we'll consider the opposite and count the number of ways that we can arrange the children such that A and B are always together.
\n" ); document.write( "What we'll do is remove both of these letters from the list, and replace them with H\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "So we go from
\n" ); document.write( "A,B,C,D,E,F,G
\n" ); document.write( "to
\n" ); document.write( "H,C,D,E,F,G\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "H is a placeholder for either A,B or B,A.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "There are 6 letters in the set {H,C,D,E,F,G} so there are 6! = 6*5*4*3*2*1 = 720 ways to permute these items.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Since there are two ways to replace H, for any of the 720 permutations mentioned, this means there are overall 2*720 = 1440 different ways to have the children arranged such that child A and child B are always sitting next to each other.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "However, we want them separated. So we must subtract that count from 7! = 7*6*5*4*3*2*1 = 5040 because this represents the total number of ways to arrange all seven kids without any restrictions.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Phrased another way:
\n" ); document.write( "answer we want = (number of ways to arrange all kids with no restrictions) - (number of ways to arrange the kids such that A,B are always together)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "We could use algebra to tidy that equation up
\n" ); document.write( "x = number of ways to arrange all kids with no restrictions (A and B may or may not be sitting together)
\n" ); document.write( "y = number of ways to arrange the kids such that A,B are always together
\n" ); document.write( "z = number of ways to arrange the kids where A,B are never together
\n" ); document.write( "So based on that we can say,
\n" ); document.write( "z = x-y\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Earlier we found that
\n" ); document.write( "x = 5040
\n" ); document.write( "y = 1440
\n" ); document.write( "So,
\n" ); document.write( "z = x-y
\n" ); document.write( "z = 5040-1440
\n" ); document.write( "z = 3600\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "------------------------------------\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Answer: 3600\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "I think your teacher made a typo and meant to say 3600 for choice A, instead of 360.
\n" ); document.write( "
\n" ); document.write( "
\n" );