-1

How many strings of five characters use the letters a, b, c, d and do not have the letters bad appearing consecutively and in this order? (Letters can occur any number of times, including not at all.)

EmaLee
  • 1,153

1 Answers1

1

Total $= 4^5$
Strings containing bad $\newcommand{\1}[2]{{}^{#1}{\mathbb C}_{#2}}= \1314^2$
Subtract those.

N. F. Taussig
  • 76,571
RE60K
  • 17,716