OFFSET
0,3
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..250
Wikipedia, Permutation
FORMULA
a(n) = n! - A324366(n).
EXAMPLE
a(4) = 14: 1234, 1243, 1324, 1342, 1423, 1432, 2134, 2143, 2314, 2413, 3124, 3142, 3214, 3412.
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Feb 23 2019
STATUS
approved