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!)
A036782 a(n) = n - 1 + Sum_{j=0..n} j!. 1
0, 2, 5, 12, 37, 158, 879, 5920, 46241, 409122, 4037923, 43954724, 522956325, 6749977126, 93928268327, 1401602636328, 22324392524329, 378011820620330, 6780385526348331, 128425485935180332, 2561327494111820333 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
FORMULA
a(n) = A036781(n) - 1.
E.g.f.: exp(x-1)*(Ei(1)-Ei(1-x)) + exp(x)*(x-1) + 1/(1-x). - Robert Israel, Jan 05 2015
MAPLE
N:= 30: # to get a(0) to a(N)
C:= ListTools:-PartialSums([seq(j!, j=0..N)]):
seq(n-1+C[n+1], n=0..N); # Robert Israel, Jan 05 2015
PROG
(PARI) a(n) = n - 1 + sum(j=0, n, j! ); \\ Joerg Arndt, Jan 06 2015
CROSSREFS
Cf. A036781.
Sequence in context: A138314 A115277 A130221 * A050237 A050258 A051436
KEYWORD
nonn
AUTHOR
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 16:21 EDT 2024. Contains 371794 sequences. (Running on oeis4.)