Charles Greathouse on Tue, 08 Jul 2014 20:38:35 +0200


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

Re: Permutation and Combination how to find rank?


I'm not sure what you're asking. You can use numtoperm and permtonum to convert a number to a permutation and vice versa:

> permtonum([3,1,2])
%1 = 4
> numtoperm(3,%)
%2 = [3, 1, 2]

Charles Greathouse
Analyst/Programmer
Case Western Reserve University


On Tue, Jul 8, 2014 at 2:18 PM, chandra sekaran <sekar.bc@gmail.com> wrote:
Hi ,

How to find rank in permutation and combination. For example

256^2 will give all possible permutation and combination. I want  know at 50000

what combination will come?  Using Pari how to calculate.

Regards,
Chandrasekaran B