In how many ways can the letters in "WONDERING" be arranged with exactly two consecutive vowels ?
The solution is $18 \times 7!$ by classical counting technique
(because firstly choose $2$ adjacent vowels out of $3$ vowels by $3$ ways.Lets say we chose $O,E$ After that , arrange them by $2!\times (8!/2!)$ ways because there are double N. Result = $3 \times 8!$ . However , when we arrange $2$ vowels ,there will be cases where the third vowel $I$ is adjacent to them , so we must subtract the cases where $3$ vowels are adjacent. The result is $3 \times 2 \times 2 \times (7!/2!)$ , so the main result is $3 \times 8! - 3 \times 2 \times 2 \times (7!/2!) =18 \times 7!$) .
However , when i wanted to solve it by using formula , i encounter with different result.
My formula is $E_m=S_m - (\frac{m+1}{1})S_{m+1} + (\frac{m+2}{1})S_{m+2} - ...$ where $m$ represent the number of elements in $S$ that satisfy exactly $m$ of the conditions. Here , $S_m$ means that the number of the arrangements of $m$ adjacent vowels. For example $S_2= 3\times 8!$
Then , $E_2=S_2 - (\frac{2+1}{1})S_{2+1} =C(3,2) \times 2! \times \frac{8!}{2!} - 3 \times 3! \times \frac{7!}{2!} =15 \times 7!$
What am i missing ? This formula is working when the letters are CORRESPONDENTS , in that case , we write $C(5,2)[12! / (2!)^3]-C(3,1)C(5,3)[11! / (2!)^2]+C(4,2)C(5,4)[10! / (2!)]-C(5,3)C(5,5)[9!]$ for the case where there are exactly 2 pairs of consecutive identicsl letters.
However , the formula does not work for WONDERING , WHY ??