login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A083392 Alternating partial sums of A000217. 2
0, -1, 2, -4, 6, -9, 12, -16, 20, -25, 30, -36, 42, -49, 56, -64, 72, -81, 90, -100, 110, -121, 132, -144, 156, -169, 182, -196, 210, -225, 240, -256, 272, -289, 306, -324, 342, -361, 380, -400, 420, -441, 462, -484, 506, -529, 552, -576, 600, -625, 650, -676, 702 (list; graph; refs; listen; history; internal format)
OFFSET

0,3

LINKS

William A. Tedeschi, Table of n, a(n) for n=0..10000

FORMULA

Sum{i=0, n, (-1)^i*t(i)} where t(i)=i*(i+1)/2

a(n)= -2*a(n-1) +2*a(n-3) +a(n-4). G.f.: x/((x-1)*(1+x)^3). [From R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Feb 09 2010]

a(n) = (-1)^n * [(n^2+n)/2 - floor(n^2/4)] [From William A. Tedeschi (fynmun(AT)att.net), Aug 24 2010]

EXAMPLE

a(4)=t(0)-t(1)+t(2)-t(3)+t(4)=0-1+3-6+10=6

PROG

(PARI) t(n)=n*(n+1)/2 for (n=0, 30, print1(sum(i=0, n, (-1)^i*t(i))", "))

CROSSREFS

Cf. A000217, A002620.

Sequence in context: A194254 A086378 A088900 * A076921 A002620 A087811

Adjacent sequences:  A083389 A083390 A083391 * A083393 A083394 A083395

KEYWORD

sign

AUTHOR

Jon Perry (perry(AT)globalnet.co.uk), Jun 11 2003

EXTENSIONS

More terms from David W. Wilson, Jun 14 2003

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 17 12:38 EST 2012. Contains 206021 sequences.