The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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

%I #16 Jul 16 2022 22:51:12

%S 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,

%T 7,-8,-8,-8,-8,-8,-8,-8,-8,9,9,9,9,9,9,9,9,9,-10,-10,-10,-10,-10,-10,

%U -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

%N a(0)=0; thereafter (-1)^(n+1)*n appears n times.

%H Chai Wah Wu, <a href="/A274094/b274094.txt">Table of n, a(n) for n = 0..10011</a>

%p s1:=[0];

%p for n from 1 to 15 do

%p for i from 1 to n do

%p s1:=[op(s1),(-1)^(n+1)*n]; od: od:

%p s1;

%o (Python)

%o 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

%Y Cf. A002024, A274093.

%Y Partial sums of A010816.

%K sign

%O 0,3

%A _N. J. A. Sloane_, Jun 10 2016

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 June 3 12:27 EDT 2024. Contains 373060 sequences. (Running on oeis4.)