Mathematics (JEE)Moderate

The letters A, A, B, B, C, C, D, D are arranged in a row in all distinct ways. How many arrangements have no two identical letters next to each other?

  1. A. 2520
  2. B. 864
  3. C. 1080
  4. D. 240

Correct answer: B. 864

Inclusion–exclusion over the set of letter-pairs that end up adjacent: Σ (−1)ᵏ C(4,k) (8 − k)!/2^(4−k) = 2520 − 2520 + 1080 − 240 + 24 = 864. Stopping after the first term gives 2520, and keeping only the k = 2 term gives 1080.

More Permutations, Combinations and Probability questions

Exams that ask this topic