Mathematics (JEE)ModerateTCS NQT · Accenture

How many strings of length 7 over the alphabet {0, 1, 2} have no two equal symbols in adjacent positions?

  1. A. 2187
  2. B. 192
  3. C. 128
  4. D. 384

Correct answer: B. 192

The first symbol has 3 choices and each of the other 6 positions must differ from its left neighbour, leaving 2 choices, so 3 * 2^6 = 192.

More Permutations, Combinations and Probability questions

Exams that ask this topic