GATE Computer ScienceVery hardGATE CS (PYQ pattern)
How many distinct arrangements of the letters of ABRACADABRA have no two identical letters adjacent?
- A. 3084
- B. 3204
- C. 2892
- D. 8316
Correct answer: A. 3084
Place the 6 non-A letters (6!/(2!·2!) = 180 orderings) with the 5 A's in 5 of the 7 gaps: but the equal B's and R's can still end up adjacent when no A separates them, so the gap argument alone overcounts. A direct enumeration of the 83160 distinct arrangements keeping those with no two equal neighbours gives 3084.
More Discrete Mathematics questions
- How many odd numbers appear in rows 0 to 99 of Pascal's triangle (row n being C(n,0), …, C(n,n))?
- What is the exponent of the largest power of 3 dividing C(200, 100)?
- Evaluate Σ{k=0}^{10} k · C(10, k)².
- Evaluate Σ{k=0}^{10} C(10, k) · C(12, k + 3).
- In how many ways can 7 distinct people be divided into non-empty unlabelled groups so that every group has at least 2 people?
- In how many ways can 50 be written as an unordered sum of 2s, 5s and 10s that uses at most three 10s?