The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A348311 a(n) = n! * Sum_{k=1..n} (-1)^k * (k-2) / (k-1)!. 0
0, 1, 2, 3, 20, 85, 534, 3703, 29672, 266985, 2669930, 29369131, 352429692, 4581585853, 64142202110, 962133031455, 15394128503504, 261700184559313, 4710603322067922, 89501463119290195, 1790029262385804260, 37590614510101889061, 826993519222241559782 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
FORMULA
E.g.f.: x * (1 + x) * exp(-x) / (1 - x).
a(0) = 0; a(n) = n * (a(n-1) + (-1)^n * (n-2)).
a(n) = n * (2 * A000166(n-1) + (-1)^n).
MATHEMATICA
Table[n! Sum[(-1)^k (k - 2)/(k - 1)!, {k, 1, n}], {n, 0, 22}]
nmax = 22; CoefficientList[Series[x (1 + x) Exp[-x]/(1 - x), {x, 0, nmax}], x] Range[0, nmax]!
PROG
(PARI) a(n) = n!*sum(k=1, n, (-1)^k * (k-2) / (k-1)!); \\ Michel Marcus, Oct 20 2021
CROSSREFS
Sequence in context: A087301 A292122 A264417 * A066166 A007113 A052804
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Oct 11 2021
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 June 8 00:02 EDT 2024. Contains 373206 sequences. (Running on oeis4.)