OFFSET
0,2
COMMENTS
Boustrophedon transform of A000262.
MATHEMATICA
nmax = 21; CoefficientList[Series[(Sec[x] + Tan[x]) Exp[x/(1 - x)], {x, 0, nmax}], x] Range[0, nmax]!
t[n_, 0] := If[n < 1, 1, n! Sum[Binomial[n - 1, j]/(j + 1)!, {j, 0, n - 1}]]; t[n_, k_] := t[n, k] = t[n, k - 1] + t[n - 1, n - k]; a[n_] := t[n, n]; Array[a, 22, 0]
PROG
(Python)
from itertools import count, islice, accumulate
from sympy import hyper, hyperexpand
def A307595_gen(): # generator of terms
blist = tuple()
for i in count(0):
yield (blist := tuple(accumulate(reversed(blist), initial=hyperexpand(hyper((1-i, -i), [], 1)))))[-1]
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Apr 17 2019
STATUS
approved
