
Written by Ion Saliu on July 4, 2002 (2 WE).
• There has always been a great interest in 'combination'. There is a branch of mathematics named 'combinatorics'. The lottery and many other gambling businesses rely on combinatorics or the 'mathematics of combinations'. Theory of probability itself wouldn't have been possible without the science of combinations.
Two major difficulties in combinatorics are related to two factors:
1) determining theoretically the rank (or lexicographical order) of a given combination;
2) constructing theoretically the combination of a given rank.
The first attempt to address the major issues came in 1974. B.P. Buckles and M. Lybanon created a computer program to construct a combination when the rank is known (algorithm “ACM #515”). It is a great achievement. The authors of that algorithm, however, were unable to reverse the procedure and determine the rank for a given combination.
I was the first to solve the problem. I did it in 2001 (1 WE). I wrote the computer program SEQUENCE.EXE. I presented the core of my algorithm in the message:
The PowerBall algorithm didn't work out in the first day. If I can't come out with a solution the first day, chances are there is no solution. Almighty Number grants us one unit of Light and one unit of Darkness to carry out important tasks. It was minutes after the end of the Darkness period. I “saw' the invisible PowerBall algorithm in a late dream. I tried to implement it several times, to no avail. It was a hot summer morning. Every line of code was melting down soon after its inception. The ice cubes did nothing but add fuel to the fire. I waited for another unit of Darkness. I wrote the algorithm invisibly, in a dream. When I woke up I found a compiled program already. It was named:
COLORDER.EXE
with the description: “COmbination Lexicographical ORDER”, version 1.00, July 2002 (2 WE).
The program is freeware, of course. Download it from the most astonishing FTP download site in history:
www.saliu.com/infodown.html
I verified the algorithm with many cases. I believe the procedure is 100% accurate. But, if you think you discovered a miscalculation, please let me know. Document the error as detailed and as clearly as possible. I believe I can fix the errors – if any.
Best of luck!
Ion Saliu

This is a comprehensive list of my writings on the topic of lexicographical order or indexing, including algorithms and software.
The following are older and somehow outdated materials I wrote on lexicographical order subjects. Most of the older software is outdated. Nothing (in the whole world) can beat LexicographicSets.EXE or DrawIndex.EXE. Sentimentalism is good only to a close extent.
Of course, everybody loves to feast on great software, especially when it is free! My combinatorics software (and other categories) is absolutely free to run, for an unlimited period of time. However, only the registered members have a right to download the software. Membership requires a nominal fee — the most reasonable there is to connect to the greatest and most useful software ever created. No kidding! Read the conditions to becoming a registered member: Download Great Free Software: Paid Membership Required.


