login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A307878 Expansion of e.g.f. exp(3*x)*(sec(x) + tan(x)). 1
1, 4, 16, 65, 272, 1189, 5506, 27365, 147512, 868129, 5589646, 39309965, 300724652, 2489776969, 22192420786, 211923843365, 2158631018192, 23361793658209, 267706067651926, 3238110860029565, 41228900865842132, 551189774407729849, 7719762678323791066 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
COMMENTS
Boustrophedon transform of A000244 (powers of 3).
LINKS
MATHEMATICA
nmax = 22; CoefficientList[Series[Exp[3 x] (Sec[x] + Tan[x]), {x, 0, nmax}], x] Range[0, nmax]!
t[n_, 0] := 3^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 A307878_gen(): # generator of terms
blist, m = tuple(), 1
yield from blist
while True:
yield (blist := tuple(accumulate(reversed(blist), initial=m)))[-1]
m *= 3
A307878_list = list(islice(A307878_gen(), 40)) # Chai Wah Wu, Jun 12 2022
CROSSREFS
Column k=3 of A292975.
Sequence in context: A099781 A026872 A081915 * A217632 A026762 A277871
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Jun 04 2019
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 06:44 EDT 2024. Contains 371782 sequences. (Running on oeis4.)