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

Table of n, a(n) for n=1..18.

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

Cf. A007778, A062815.

Sequence in context: A114472 A000901 A295245 * A266305 A098118 A097821

Adjacent sequences:  A341327 A341328 A341329 * A341331 A341332 A341333

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 May 21 03:31 EDT 2022. Contains 353887 sequences. (Running on oeis4.)