Suppose I have a random permutation of first $N$ natural number, how do I determine its index of a given permutation, if all the permutations were arranged in lexographical order ,
I understand the approach for $N<10$ as all numbers are single digit:
rank=1
for all positions in permutation:
rank+= (no of avalable choices for this pos) X (n-present pos)!)
What about when $N>10$ , Example $N=100$. Is it same as for $N<10$.