Suppose I have a family of vectors of the form x=(x0,x1,x2,x3,x4,x5) where x0,x3 can taker either 0 or 1 value and all the other variables can take values 0,1,2,3,4,5,6,7. Then I m ordering them in lexigraphic order say like 000000<000001<000002<...<000010<000020<....
We have in total 16384=2.8.8.2.8.8 elements. I want to list thme in a list in this order so that when given say the number m I can recover the entries x0,..,x5 of the mth element in my list. So I need like function from these vectors to {0,1,...,16383}. I want this for a programming task actually.