OFFSET
0,5
COMMENTS
Inverse boustrophedon transform of Catalan numbers.
MATHEMATICA
nmax = 24; CoefficientList[Series[Exp[2 x] (BesselI[0, 2 x] - BesselI[1, 2 x])/(Sec[x] + Tan[x]), {x, 0, nmax}], x] Range[0, nmax]!
t[n_, 0] := CatalanNumber[n]; t[n_, k_] := t[n, k] = t[n, k - 1] - t[n - 1, n - k]; a[n_] := t[n, n]; Table[a[n], {n, 0, 24}]
PROG
(Python)
from itertools import islice, count, accumulate
from operator import sub
def A337446_gen(): # generator of terms
blist, c = tuple(), 1
for i in count(0):
yield (blist := tuple(accumulate(reversed(blist), func=sub, initial=c)))[-1]
c = c*(4*i+2)//(i+2)
CROSSREFS
KEYWORD
sign
AUTHOR
Ilya Gutkovskiy, Aug 27 2020
STATUS
approved