UzairSohail
That's alright, I understand this solution. But my question is, why can't this be solved by 7P3/2!? What is the flaw in this strategy? Since we are choosing 3 letters from 7 letters, using permutation because order matters, and dividing the result by 2! because one letter repeats twice.
You divide by 2! when all the solutions have repetitions but is it so here in all cases. NO
If the letter is MAG, then there is no repetition. So you are subtracting more cases than you should by dividing everything by 2!.
What if we want to move fwd on 7*6*5 or 210 cases.
There are two types of repetition.
1) When the word contains exactly one O.
The other two can be chosen in 5C2 or 10 ways. But each way can be arranged in 3! ways.
Thus, total 10*3! Or 60 ways.
2) When the word contains 2 Os.
The other one can be chosen in 5C1 or 5 ways. But each way can be arranged in 3!/2! ways.
Thus, total 5*3!/2! Or 15 ways.
Ways that are repeated 60+15 or 75 ways.
Total = 210-75 = 135 ways
Hope it helps