This document describes an O(n) algorithm for generating the k-th lexicographic permutation of an n-element array, using a factoradic representation of k. It highlights the efficiency of the algorithm compared to standard alternatives, emphasizing its complexity, limitations, and coding methodology. Additionally, the algorithm is constrained to arrays of size up to 128 due to the use of a hash function, and it is noted that the code is undocumented.