Placement AptitudeVery hardCAT · Product company OA

Five offices stand around a circular courtyard, each next to two others. Each office is painted one of 4 colours so that neighbouring offices differ. In how many ways can this be done (offices are distinguishable)?

  1. A. 240
  2. B. 324
  3. C. 216
  4. D. 246

Correct answer: A. 240

For a cycle of n regions and k colours the count is (k − 1)ⁿ + (−1)ⁿ(k − 1) = 3⁵ − 3 = 240. 324 = 4 × 3⁴ treats the offices as a row and ignores the last–first adjacency; 246 gets the sign wrong for odd n.

More Permutations, Combinations and Probability (Placement) questions

Exams that ask this topic