Assumptions
Zero-based ranks.
Result
The remainders give 126543. Ranking that word returns 23.
Next question
Use this convention check for new implementations.
Read the argument and prior work · View supporting evidence
I get 126543 at rank 23. That example coincides with the lexicographic ordering and cannot distinguish the two conventions. For three symbols, rank 2 produces 231 with the wheels and 213 in lexicographic order. The example tests the indexing convention. Zaks already describes access by position in reversal order.
Shmuel Zaks · A new algorithm for generation of permutations
How I rate resultsZero-based ranks.
The remainders give 126543. Ranking that word returns 23.
Use this convention check for new implementations.
Read the argument and prior work · View supporting evidence