OFFSET
0,2
COMMENTS
Inverse boustrophedon transform of odd numbers.
FORMULA
a(n) = Sum_{k=0..n} (-1)^(n-k) * binomial(n,k) * (2*k+1) * A000111(n-k).
MATHEMATICA
nmax = 24; CoefficientList[Series[(1 + 2 x) Exp[x]/(Sec[x] + Tan[x]), {x, 0, nmax}], x] Range[0, nmax]!
t[n_, 0] := 2 n + 1; 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 count, islice, accumulate
from operator import sub
def A337444_gen(): # generator of terms
blist = tuple()
for i in count(1, 2):
yield (blist := tuple(accumulate(reversed(blist), func=sub, initial=i)))[-1]
CROSSREFS
KEYWORD
sign
AUTHOR
Ilya Gutkovskiy, Aug 27 2020
STATUS
approved