Mathematics (JEE)Very hardCodeforces Div2 D

How many distinct arrangements of the letters of ABRACADABRA have no two A's next to each other?

  1. A. 83160
  2. B. 68040
  3. C. 3420
  4. D. 3780

Correct answer: D. 3780

There are 11!/(5!2!2!1!1!) = 83160 arrangements, and 3780 of them avoid adjacent A's.

More Permutations, Combinations and Probability questions

Exams that ask this topic