Placement AptitudeVery hardProduct company OA · CAT level

Three identical red, three identical blue and three identical green balls are arranged in a row. In how many arrangements are no two balls of the same colour next to each other?

  1. A. 168
  2. B. 216
  3. C. 180
  4. D. 174

Correct answer: D. 174

First arrange the 3 blue and 3 green balls (20 ways), then drop the 3 reds into 3 of the 7 gaps (including the ends), one red per gap. If the blue–green row has m equal neighbouring pairs, a red must go into each of those m gaps and the other 3 − m reds into any of the remaining 7 − m gaps: C(7 − m, 3 − m) ways. Rows with m = 0, 1, 2, 3, 4 equal pairs number 2, 4, 8, 4, 2 (m = 4 is BBBGGG or GGGBBB, which would need 4 reds). Total 2·C(7,3) + 4·C(6,2) + 8·C(5,1) + 4·C(4,0) = 70 + 60 + 40 + 4 = 174. 216 = 6³ ignores the identical balls.

More Permutations, Combinations and Probability (Placement) questions

Exams that ask this topic