OFFSET
0,2
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..227
FORMULA
a(n) = A186370(2n+1,n+1).
a(n) ~ c * d^n * n!^2, where d = 3.4210546206711870249402157940795853513031388... and c = 0.974460718185930534652526741942010711752... - Vaclav Kotesovec, Apr 29 2018
EXAMPLE
a(1) = 3: 132, 231, 321.
MAPLE
b:= proc(n, k) option remember; `if`(k=0,
`if`(n=0, 1, 0), `if`(k<0 or k>n, 0,
k*b(n-1, k)+b(n-1, k-1)+(n-k+1)*b(n-1, k-2)))
end:
a:= n-> b(2*n+1, n+1):
seq(a(n), n=0..20);
MATHEMATICA
b[n_, k_] := b[n, k] = If[k == 0,
If[n == 0, 1, 0], If[k < 0 || k > n, 0,
k b[n-1, k] + b[n-1, k-1] + (n-k+1) b[n-1, k-2]]];
a[n_] := b[2n+1, n+1];
a /@ Range[0, 20] (* Jean-François Alcover, Dec 21 2020, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Apr 19 2018
STATUS
approved