Re: Formula to convert a permutation into an ordinal number?

From: Scott Hemphill (hemphill_at_hemphills.net)
Date: 11/11/04


Date: 11 Nov 2004 16:04:01 -0500

Top Spin <ToppSpin@hotmail.com> writes:

> There are 24 permutations of the integers 1,2,3,4. Is there a formula
> that will convert these 24 permutations into the integers 1-24?
>
> For example,
>
> 1234 -> 1
> 1243 -> 2
> 1324 -> 3
> ...
> 4321 -> 24

Google is your friend. See:

http://groups.google.com/groups?selm=m3adqpzhrq.fsf%40pearl.local

Scott

-- 
Scott Hemphill	hemphill@alumni.caltech.edu
"This isn't flying.  This is falling, with style."  -- Buzz Lightyear


Relevant Pages