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!)
A337444 Expansion of e.g.f. (1 + 2*x) * exp(x) / (sec(x) + tan(x)). 0
1, 2, 0, -1, -8, -5, -50, 79, -696, 3375, -22830, 156719, -1205244, 9952735, -88770370, 847488719, -8633147152, 93430030975, -1070638898070, 12950169210479, -164886839860420, 2204373939190495, -30873660197736330, 452059981437456399, -6906967824497129048 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
COMMENTS
Inverse boustrophedon transform of odd numbers.
LINKS
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]
A337444_list = list(islice(A337444_gen(), 30)) # Chai Wah Wu, Jun 11 2022
CROSSREFS
Sequence in context: A278881 A335095 A344069 * A340556 A201637 A055141
KEYWORD
sign
AUTHOR
Ilya Gutkovskiy, Aug 27 2020
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 15:11 EDT 2024. Contains 371794 sequences. (Running on oeis4.)