login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A326501 a(n) = Sum_{k=0..n} (-k)^k. 1

%I

%S 1,0,4,-23,233,-2892,43764,-779779,15997437,-371423052,9628576948,

%T -275683093663,8640417354593,-294234689237660,10817772136320356,

%U -427076118244539019,18019667955465012597,-809220593930871751580,38537187481365665823844

%N a(n) = Sum_{k=0..n} (-k)^k.

%H Seiichi Manyama, <a href="/A326501/b326501.txt">Table of n, a(n) for n = 0..386</a>

%F a(n) = 1 + (-1)^n * A001099(n).

%p a:= proc(n) option remember; `if`(n<0, 0, (-n)^n+a(n-1)) end:

%p seq(a(n), n=0..23); # _Alois P. Heinz_, Sep 12 2019

%o (PARI) {a(n) = sum(k=0, n, (-k)^k)}

%Y Cf. A001099, A062970, A177885.

%K sign,easy

%O 0,3

%A _Seiichi Manyama_, Sep 12 2019

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified February 27 19:10 EST 2020. Contains 332308 sequences. (Running on oeis4.)