document.write( "Question 1034761: How many ways 10 hats of different colours can be put on the heads of 10 boys sitting in a row,so that the red and black coloured hats can never be put on the heads of any two adjacent boys ? \n" ); document.write( "
Algebra.Com's Answer #652814 by Edwin McCravy(20055)![]() ![]() You can put this solution on YOUR website! How many ways 10 hats of different colours can be put on \n" ); document.write( "the heads of 10 boys sitting in a row,so that the red and \n" ); document.write( "black coloured hats can never be put on the heads of any \n" ); document.write( "two adjacent boys ? \n" ); document.write( " \r\n" ); document.write( "The answer would be 10! if there were no restrictions.\r\n" ); document.write( "\r\n" ); document.write( "If the hats were:\r\n" ); document.write( "\r\n" ); document.write( "A B C D E F G H I J\r\n" ); document.write( "\r\n" ); document.write( "and there were no restrictions they could be arranged in 10! ways\r\n" ); document.write( "\r\n" ); document.write( "From that 10! we must subtract the number of non-allowable ways.\r\n" ); document.write( "\r\n" ); document.write( "Suppose the red hat is hat A and the black hat is hat B.\r\n" ); document.write( "\r\n" ); document.write( "Then we must subtract the 9! ways they could be\r\n" ); document.write( "arranged with hat A and hat B together, with hat A \r\n" ); document.write( "left of B:\r\n" ); document.write( "\r\n" ); document.write( "AB C D E F G H I J\r\n" ); document.write( "\r\n" ); document.write( "And we must also subtract the 9! ways they could be\r\n" ); document.write( "arranged with hat A and hat B together, with hat B left \r\n" ); document.write( "of hat A:\r\n" ); document.write( "\r\n" ); document.write( "BA C D E F G H I J\r\n" ); document.write( "\r\n" ); document.write( "Answer: 10! - 2*9! = 3628800 - 2*(362880) = 2903040\r\n" ); document.write( "\r\n" ); document.write( "Edwin\n" ); document.write( " |