OFFSET
0,5
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..20000
Wikipedia, Involution
Index entries for linear recurrences with constant coefficients, signature (4,-4,-4,10,-4,-4,4,-1)
FORMULA
G.f.: x^3*(x^4-2*x^2+2*x+1)/((x+1)^2*(x-1)^6).
EXAMPLE
a(3) = 1: 132.
a(4) = 6: 1243, 1324, 1432, 2143, 3412, 4231.
a(5) = 18: 12354, 12435, 12543, 13245, 14325, 14523, 15432, 21354, 21435, 21543, 32154, 34125, 42315, 42513, 45312, 52341, 52431, 53241.
MATHEMATICA
LinearRecurrence[{4, -4, -4, 10, -4, -4, 4, -1}, {0, 0, 0, 1, 6, 18, 44, 91}, 50] (* Harvey P. Dale, Sep 17 2019 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Alois P. Heinz, Apr 27 2018
STATUS
approved
