OFFSET
0,4
COMMENTS
All terms are even.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..449
FORMULA
a(n) = Sum_{k>=1} k * A152877(n,k).
a(n) ~ n! * n / 4. - Vaclav Kotesovec, Nov 19 2019
EXAMPLE
a(3) = 2: 123, 321.
MAPLE
a:= proc(n) option remember; `if`(n<5, [0$3, 2, 16][n+1],
(n-2)*(2*(n-4)*a(n-1)+(n-3)^2*n*a(n-2))/(n-3)/(n-4))
end:
seq(a(n), n=0..30);
MATHEMATICA
a[n_] := a[n] = If[n < 5, {0, 0, 0, 2, 16}[[n+1]],
(n-2)*(2*(n-4)*a[n-1] + (n-3)^2*n*a[n-2])/(n-3)/(n-4)];
Table[a[n], {n, 0, 30}] (* Jean-François Alcover, Apr 21 2022, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Nov 16 2019
STATUS
approved