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!)
A341330 a(n) = Sum_{k=1..n} (-k)^(k+1). 0
1, -7, 74, -950, 14675, -265261, 5499540, -128718188, 3358066213, -96641933787, 3041786442934, -103951418936138, 3833424966763151, -151734670591049073, 6416673685121841552, -288731231494230984304, 13774353220573494006705, -694460992134764182350927 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
MATHEMATICA
Accumulate[(-#)^(#+1)&/@Range[17]]
PROG
(PARI) a(n) = sum(i=1, n, (-i)^(i+1));
(Python)
sum = 0
for i in range(1, 20):
sum += (-i)**(i+1)
print(sum, end = ", ")
CROSSREFS
Sequence in context: A000901 A295245 A365844 * A266305 A098118 A097821
KEYWORD
sign
AUTHOR
John H. Chakkour, Feb 09 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 August 9 23:31 EDT 2024. Contains 375044 sequences. (Running on oeis4.)