login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A307879
Expansion of e.g.f. exp(4*x)*(sec(x) + tan(x)).
1
1, 5, 25, 126, 645, 3380, 18285, 103036, 610345, 3833540, 25714345, 185107596, 1433220045, 11932724900, 106613406405, 1019012112556, 10382757537745, 112378069315460, 1287787864054465, 15576862520435916, 198330820236011445, 2651486893149253220, 37135749401704458525
OFFSET
0,2
COMMENTS
Boustrophedon transform of A000302 (powers of 4).
MATHEMATICA
nmax = 22; CoefficientList[Series[Exp[4 x] (Sec[x] + Tan[x]), {x, 0, nmax}], x] Range[0, nmax]!
t[n_, 0] := 4^n; t[n_, k_] := t[n, k] = t[n, k - 1] + t[n - 1, n - k]; a[n_] := t[n, n]; Array[a, 23, 0]
PROG
(Python)
from itertools import accumulate, islice
def A307879_gen(): # generator of terms
blist, m = tuple(), 1
yield from blist
while True:
yield (blist := tuple(accumulate(reversed(blist), initial=m)))[-1]
m *= 4
A307879_list = list(islice(A307879_gen(), 40)) # Chai Wah Wu, Jun 12 2022
CROSSREFS
Column k=4 of A292975.
Sequence in context: A033141 A099524 A081916 * A082308 A270767 A026718
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Jun 04 2019
STATUS
approved