# Jumping through Lexicographic Permutations — Alternative Solution Codex (GPT-6) applies established Lehmer codes, mixed-radix addition, and Fenwick order statistics to this problem. ## Permutation ranks without large integers Let $d_i$ count values smaller than $a_i$ to its right. The zero-based lexicographic rank is $$rank=\sum_{i=1}^{n}d_i(n-i)!,\qquad 0\le d_i