Please read it once again, it's not as easy as it seems.
Is there any Mathematical formula or finite approach to solve this type of problem. Eg - Find the permutation of word "MALAYALAM" taking 5 at a time.
I have written a program which can solve this type of problem ,but I couldn't found any method to do it on paper.
My programming approach - (i) Find all the combination taking r at a time
(ii) Remove duplicates from combination by sorting
(iii) Find the permutation of individual combination and then sum up, to get the answer.
Please help me, Thanks