chandra sekaran on Sat, 25 Jun 2016 05:51:45 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Need permutation help for n!/(n-r)!


numtoperm(n,k) will give  k-th permutation for n!.
 
Any function for n!/(n-r)! available?


For n!/(n-r)!, Let n = 50 and r = 3. 
If we define r as subset say [2,3,5] i want
calculate the number where [2,3,5] occur and reverse also.

Any direct function available and if not how to calculate.

Thanks

Chandrasekaran B