Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A089594
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A089594 Alternating sum of squares to n. +0
1
-1, 3, -6, 10, -15, 21, -28, 36, -45, 55, -66, 78, -91, 105, -120, 136, -153, 171, -190, 210, -231, 253, -276, 300, -325, 351, -378, 406, -435, 465, -496, 528, -561, 595, -630, 666, -703, 741, -780, 820, -861, 903, -946, 990, -1035, 1081, -1128, 1176, -1225, 1275 (list; graph; listen)
OFFSET

1,2

FORMULA

a(n)=sum{i=1, n, (-1)^n*n^2}

EXAMPLE

a(6)=-1*1+1*4-1*9+1*16-1*25+1*36=-1+4-9+16-25+36=3+7+11=21

MAPLE

seq(sum(binomial(n, m), m=1..2)-n^2, n=2..51); - Zerinvary Lajos (zerinvarylajos(AT)yahoo.com), Jun 19 2008

PROGRAM

(PARI) for(i=1, 50, print1(", "sum(j=1, i, (-1)^j*j^2)))

CROSSREFS

Cf. A000217.

Sequence in context: A105337 A105338 A105339 this_sequence A000217 A105340 A109811

Adjacent sequences: A089591 A089592 A089593 this_sequence A089595 A089596 A089597

KEYWORD

sign

AUTHOR

Jon Perry (perry(AT)globalnet.co.uk), Dec 30 2003

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified July 23 17:35 EDT 2008. Contains 142285 sequences.


AT&T Labs Research