Q: How many ways to arrange BOOKKEEPER where two E’s appear consecutively but not three.
Here What I've got : a) We can consider the two consecutive E’s as one block say X. Hence, we get a new string: XBOOKKPER of length 9. Therefore, the number of possible rearrangements for that word is obviously:
$$ \frac{9!}{2! \cdot 2!}$$
Then I need to remove the instances when there are three consecutive E's. There are two different ways of doing this which give me different answers, and I would like to understand which is correct. Way 1: To find "EEE", i can look at adding an e to my block X, and create a superblock Y. So Y = (e, X) or (X,e), two ways so I multiply by two how many arrangements of YBOOKPR so we get:
$$ 2\cdot\frac{8!}{2!\cdot 2!} $$
Way 2: Treat Y just being "EEE" and so we subtract only:
$$ \frac{8!}{2!\cdot 2!} $$
Tl;dr is the answer :
$$ \frac{9!-2 \cdot 8!}{2!\cdot 2!} \quad \text{or} \quad \frac{9!-8!}{2!\cdot 2!} $$