I think I did this calculation correctly but wanted suggestions for a shorter way to do it. Can someone recommend a short way to do this?
My process:
Here I decided to first calculate the total number of ways GREGMAT can be arranged without any constraints. I arrived at 7! / 2! = 2520.
Then for the constraints, I calculated the following cases:
- What if the vowels are at both the ends. So, A_ _ _ _ _ E or E_ _ _ _ _ A.
- What if there’s a vowel only at the starting. So, A _ _ _ _ _ _ or E _ _ _ _ _ _.
- What if there’s a vowel only at the end. So, _ _ _ _ _ _ A or _ _ _ _ _ _ E.
For 1. the number of arrangements possible will be 2 x (5! / 2!) = 120
For 2. the number of arrangements possible will be 2 x (6! / 2!) = 720
For 3. the number of arrangements possible will be 2 x (6! / 2!) = 720
Since the cases for 1. are repeating in 2. and 3. as well, we can subtract 120 from 720 for each cases.
Final answer: 2520 - (120 + 720-120 + 720-120) = 1200.