BOOGER
is called awesome, if the string does not contain the substring OO. Thus, GEOROB is awesome, whereas GREOOB is not awesome. What is the number of awesome strings?Now, we can find the number of awesome strings
$|A| = |S| - |\overline{A}| $
$|A| = (6 \cdot \binom{5}{2} \cdot 3 \cdot 2 \cdot 1) - 5!$
$|A| = (6 \cdot \binom{5}{2} \cdot 3 \cdot 2) - 5!$