SOLUTION: 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 adja

Algebra.Com
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 ?
Answer by Edwin McCravy(20054)   (Show Source): You can put this solution on YOUR website!
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 ?
The answer would be 10! if there were no restrictions.

If the hats were:

A B C D E F G H I J

and there were no restrictions they could be arranged in 10! ways

From that 10! we must subtract the number of non-allowable ways.

Suppose the red hat is hat A and the black hat is hat B.

Then we must subtract the 9! ways they could be
arranged with hat A and hat B together, with hat A 
left of B:

AB C D E F G H I J

And we must also subtract the 9! ways they could be
arranged with hat A and hat B together, with hat B left 
of hat A:

BA C D E F G H I J

Answer: 10! - 2*9! = 3628800 - 2*(362880) = 2903040

Edwin

RELATED QUESTIONS

Suppose you have 30 books (15 novels, 10 history books, and 5 math books). Assume that... (answered by math_helper)
In how many ways can a group of 5 boys and 5 girls be seated in a row of 10 seats if boys (answered by josmiceli)
This is all about combination. 1. In how many ways can 6 students be seated in a row... (answered by psbhowmick)
In how many ways can 6 students be seated in a row of 6 seats if 2 of the students insist (answered by ikleyn)
In how many ways can 14 students be seated in a row of 14 chairs if Jaime insists on... (answered by raphaelfundani)
In how many ways can 14 students be seated in a row of 14 chairs if Tevin insists on... (answered by Edwin McCravy)
In how many ways can 4 students be seated in a row of 4 chairs if Jack insists on sitting (answered by ikleyn)
In how many ways can 6 students be seated in a row of 6 chairs if Jack insists on sitting (answered by ikleyn)
In how many ways can 3 students be seated in a row of 3 chairs if Jack insists on sitting (answered by ikleyn)