Bill Allombert on Wed, 10 Oct 2012 17:27:09 +0200


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

Re: numtoperm and Factorial Number System


On Sun, Oct 07, 2012 at 12:04:21PM +0200, Karim Belabas wrote:
> * Mathieu Carbou [2012-10-07 01:56]:
> [...]
> > I was wondering why in PARI the numtoperm does not match the Nth
> > permutation in the factorial number system ?
> 
> No particular reason. The code was submitted (by Ilya Zakharevich) and
> included essentially "as is".

I just created a git branch 'bill-numtoperm_lex' that changes Ilya code
minimally to use lexicographic ordering.

Cheers,
Bill.