GATE Computer ScienceVery hardGATE CS (PYQ pattern)

Eight people A, B, C, D, E, F, G, H sit around a round table (arrangements that differ by rotation are the same). In how many arrangements are C and D next to each other but A and B are NOT next to each other?

  1. A. 1440
  2. B. 840
  3. C. 1200
  4. D. 960

Correct answer: D. 960

Treat C D as one block: 2 · 6! /... circular arrangements of 7 units = 6! = 720, times 2 for the order of C, D = 1440. Of these, A and B are adjacent in 2·2·5! = 480 (glue A–B too: 6 units gives 5! = 120, times 2 × 2 = 480), so 1440 − 480 = 960.

More Discrete Mathematics questions

Exams that ask this topic