The document describes an O(n) algorithm for generating the kth lexicographically ordered permutation of an n-element array using factoradic representation. It improves upon traditional O(n^2) decoding methods by employing a hash function, allowing for efficient permutation generation. However, the algorithm is limited to arrays of size 128 due to the hash function's constraints, with potential for extension at reduced efficiency.