5 children sitting in a row are each given one chocolate from one of three types of chocolates, with no two adjacent children receiving the same type of chocolate. How many different ways can the chocolates be distributed to the students?
24
36
76
48
Let the children be C1, C2, C3, C4, C5, and A, B, and C be three types of chocolates.
C1 can get any of the 3 from A, B, and C in 3 ways.
C2 can get any of the 2, other than what A got in 2 ways.
C3, C4, and C5 each can get different chocolates in 2 ways
The total number of ways in which distribution can be done is
Therefore, the number of ways is 48 ways.
Study 40% syllabus and score up to 100% marks in JEE