Subject: combinations

From: "Czerminski, Ryszard" <[email-masked]>
Date: Fri, 24 Sep 1999 07:46:09 -0400

I am looking for a function which could compute
combinations given lexicographical index e.g.

C(1;3,2) -> 1,2
C(2;3,2) -> 1,3
C(3;3,2) -> 2,3

I have found function which does this
( http://math.nist.gov/GAMS.html ) but it is limited
to small numbers since it is using regular 4 bytes
representation for integers and therefore index
range is severly limited ( < 2^32 ).

Any pointers to the software which does this for
integers of arbitrary length would be very much
appreciated.

Ryszard Czerminski   phone: (781)395-1269 x 479
ArQule, Inc.         e-mail: [email-masked]
200 Boston Avenue    http://www.arqule.com
Medford, MA 02155