I am looking for guidance as to how to account for the three e's in the word "freezer" where where double letters are not allowed.
The word consists of the following letters: • f: 1 • z: 1 • e: 3 • r: 2
Total Arrangements Without Restrictions
The total number of arrangements of the letters can be calculated using the formula for permutations of a multiset where: • n is the total number of letters. • n1,n2,n3,… are the frequencies of each unique letter. • Total letters n=7 (f, z, e, e, e, r, r) • Frequencies: f = 1, z = 1, e = 3, r = 2
Thus, the total arrangements are: $\frac{7!}{1!\cdot 3!\cdot 2!\cdot 1!} = 420$
Using the inclusion/exclusion principal I can subtract out arrangements with double letters.
For "rr", there are 6 different ways that a double "rr" can occur, leaving 5 places for the other letters, three of which are "e"
- r r _ _ _ _ _
- _ r r _ _ _ _
- _ _ r r _ _ _
- _ _ _ r r _ _
- _ _ _ _ r r _
- _ _ _ _ _ r r
$\frac{6 \cdot 5!}{1!\cdot 3! \cdot 1!} = 120$
Now I have to subtract out the three e's. This is where I become less sure of how to solve.
What I did was lump (ee) together and set my letters as (ee) e _ _ _ _ places or r, r, f, z
If I do this, I get 5 ways to arrange an (ee) e - each with 4 places to fill, two of which are "r".
- (ee) e _ _ _ _
- _ (ee) e _ _ _
- _ _ (ee) e _ _
- _ _ _ (ee) e _
- _ _ _ _ (ee) e
$\frac{5 \cdot 4!}{1! \cdot 2! \cdot 1!} = 60$
420 - 120 - 60 = 240.
I still think I'm not accounting for that 3rd "e". Is there a better way to attack this problem? And, how does this work where I have 4 of the same letter and need to avoid doubles?