Mathematics (JEE)ModerateCAT · MBA placement

How many words of length 6 over {a, b}, containing exactly two a's, are palindromes?

  1. A. 6
  2. B. 3
  3. C. 4
  4. D. 9

Correct answer: B. 3

In a palindrome, positions i and 7 − i match, giving 3 free pairs. Two a's must fill exactly one pair, so there are 3 choices. Option 6 counts placements of two a's without the symmetry.

More Permutations, Combinations and Probability questions

Exams that ask this topic