Exercise 14.

How many 6 letter words made from the letters \(a,b,c,d,e,f\) without repeats do not contain the sub-word “bad” in consecutive letters?

How many don’t to contain the subword “bad” in not-necessarily consecutive letters (but in order)?

in-context