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!)
A308520 Expansion of e.g.f. exp(x)*(1 + x + x^2/2)*(sec(x) + tan(x)). 0
1, 3, 9, 27, 84, 287, 1116, 4984, 25368, 145277, 924684, 6475018, 49464756, 409371731, 3648595216, 34841512504, 354892721168, 3840839273849, 44012775982132, 532368664987942, 6778328366073724, 90619575089479631, 1269184691838666152, 18583725601041230532 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
COMMENTS
Boustrophedon transform of A000124 (central polygonal numbers).
LINKS
MATHEMATICA
nmax = 23; CoefficientList[Series[Exp[x] (1 + x + x^2/2) (Sec[x] + Tan[x]), {x, 0, nmax}], x] Range[0, nmax]!
t[n_, 0] := n (n + 1)/2 + 1; t[n_, k_] := t[n, k] = t[n, k - 1] + t[n - 1, n - k]; a[n_] := t[n, n]; Array[a, 24, 0]
PROG
(Python)
from itertools import count, islice, accumulate
def A308520_gen(): # generator of terms
blist = tuple()
for i in count(0):
yield (blist := tuple(accumulate(reversed(blist), initial=i*(i+1)//2+1)))[-1]
A308520_list = list(islice(A308520_gen(), 30)) # Chai Wah Wu, Jun 11 2022
CROSSREFS
Sequence in context: A131428 A099787 A351342 * A176826 A146786 A151029
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 25 16:45 EDT 2024. Contains 371989 sequences. (Running on oeis4.)