OFFSET
2,2
FORMULA
G.f.: (-1 + sqrt((8*x-1)*sqrt(1-8*x) - 136*x^2 + 20*x + 1)/sqrt((8*x-1)*sqrt(1-8*x) - 8*x^2 + 20*x + 1))*((8*x-1)*sqrt(1-8*x) - 8*x^2 - 12*x + 1)/(64*x).
EXAMPLE
For n=4 the 11 permutations are: 1234, 1243, 1324, 1423, 1432, 2134, 2143, 2314, 3124, 3142, 3214.
CROSSREFS
KEYWORD
nonn
AUTHOR
Nathaniel Shar, Oct 06 2014
STATUS
approved