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?
- A. 2187
- B. 192
- C. 128
- 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.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- Seven distinct people, including P and Q, stand in a row. How many of the 7! orderings have neither P nor Q at either end of the row?
- Seven people sit around a round table. Seatings that differ only by a rotation are the same, but mirror images are different. Two specific…
- How many distinct necklaces can be made from 6 beads, each bead coloured with one of 3 colours? Two necklaces are the same if one can be…
- How many distinct bracelets can be made from 8 beads, each bead black or white? Two bracelets are the same if one can be obtained from the…
- A ring of 6 beads is coloured with 3 colours so that every two neighbouring beads, including the last and the first, have different…
- How many permutations of {1, 2, ..., 7} have exactly 3 fixed points, that is, exactly 3 values i with p(i) = i?