Finding the n-th lexicographic permutation

find the N-th lexicographic permutation using Factoradic method
BUG CAS sequence(Iteration) $8,$14,$15[br]fail of sequence(Iteration) in CAS see row numbers [br][br]perm(n,I++)-js-Button[br][list][*]n length of permutation, I lexicographic index in AlgebraView[br][br][/*][/list][url=https://www.reddit.com/r/geogebra/comments/1dfowvl/iteration_in_sequence/]https://www.reddit.com/r/geogebra [br][/url][br]Ersatz/workaround max pp=13: sumFacR(X,pp)

Information: Finding the n-th lexicographic permutation