I am working on a project and this is a mathematical issue I have encountered. Combinatorics is not my strong point so some help would be most welcome.
The idea is you have 81 elements to pick from and you pick 6 of them, no repeats, order does matter. I know then that the number of combinations that can be picked is $$\frac{81!}{(81-6)!}=233‚668‚955‚520$$ So far that is not an issue. Now I want to give each of these a numberic idea from 1 to almost 234 billion based on their "order". So starting with the lowest being 1, second lowest 2 etc We'd get
1-2-3-4-5-6 = 1
1-2-3-4-5-7 = 2
1-2-3-4-5-8 = 3
...
1-2-3-4-5-81 = 75
1-2-3-4-6-5 = 76
and so on in a similar fashion. Where it ticks up in a similar fashion over and over further and further left until it finally ends with
81-80-79-78-77-76=233‚668‚955‚520
My issue is, I am entirely unable to figure out a good formula to achieve this. I am seeking a formula $$f:\mathbb{N}_{81}^6\to\mathbb{N}$$
such that $$f(a,b,c,d,e,f)=\text{id}$$
Is tehre any good way to find this or do I need ot use other methods?