OFFSET
0,4
LINKS
Gheorghe Coserea, Table of n, a(n) for n = 0..200
FORMULA
a(n) = T(n, floor(n/2)), where T(n,g) is defined by A035309. - Gheorghe Coserea, Mar 18 2016
MATHEMATICA
a[0] = a[1] = 1;
a[n_] := a[n] = ((4n-2) Mod[n, 2] a[n-1] + (n-1)(2n-3)(2n-1) a[n-2])/(n+1);
Table[a[n], {n, 0, 20}] (* Jean-François Alcover, Aug 30 2019, from PARI *)
PROG
(PARI)
seq(N) = {
my(a = vector(N)); a[1] = a[2] = 1;
for (n = 3, N,
a[n] = ((4*n-2)*(n%2)*a[n-1] + (n-1)*(2*n-3)*(2*n-1)*a[n-2])/(n+1));
concat(1, a);
};
seq(20) \\ Gheorghe Coserea, Jan 20 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
More terms from Gheorghe Coserea, Mar 18 2016
STATUS
approved