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!)
A274094 a(0)=0; thereafter (-1)^(n+1)*n appears n times. 2
0, 1, -2, -2, 3, 3, 3, -4, -4, -4, -4, 5, 5, 5, 5, 5, -6, -6, -6, -6, -6, -6, 7, 7, 7, 7, 7, 7, 7, -8, -8, -8, -8, -8, -8, -8, -8, 9, 9, 9, 9, 9, 9, 9, 9, 9, -10, -10, -10, -10, -10, -10, -10, -10, -10, -10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, -12, -12, -12, -12, -12, -12, -12, -12, -12, -12 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
MAPLE
s1:=[0];
for n from 1 to 15 do
for i from 1 to n do
s1:=[op(s1), (-1)^(n+1)*n]; od: od:
s1;
PROG
(Python)
A274094_list = [0]+ [i for n in range(1, 142) for i in [n if n % 2 else -n]*n] # Chai Wah Wu, Jun 11 2016
CROSSREFS
Partial sums of A010816.
Sequence in context: A033810 A253272 A023965 * A274093 A087847 A107436
KEYWORD
sign
AUTHOR
N. J. A. Sloane, Jun 10 2016
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 25 12:53 EDT 2024. Contains 371969 sequences. (Running on oeis4.)