Number of words that can be formed from the letters of the word ENGINEER so that order of the vowels do not change?
My work : Since order of vowels does not change, the order should always be EIEE. So I assumed it to be a single object ( EIEE) and arranged it along with NGNR in $5!/2!$ ways. But in this case, the situation when first E is separated by rest IEE and many more like that are not included. So how do I involve all cases?
There are five positions to be filled with the letters $N,G,N,R$: $$ \text{_ E _ I _ E _ E _} $$ Step 1: Let $x_1,x_2,x_3,x_4,x_5$ be the number of letters in the relevant positions. Then: $$x_1+x_2+x_3+x_4+x_5=4, \\ 0\le x_1,x_2,x_3,x_4,x_5\le 4$$ Using stars and bars it is: $${4+5-1\choose 5-1}={8\choose 4}.$$ Step 2: Permutation of the four letters $N,G,N,R$ is: $$\frac{4!}{2!}.$$ Hence, the total number of words is: $${8\choose 4}\cdot \frac{4!}{2!}=840.$$