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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A134449 Sum of even products less sum of odd products of different pairs of numbers from 1 to n. 0
0, 2, 5, 29, 39, 129, 150, 374, 410, 860, 915, 1707, 1785, 3059, 3164, 5084, 5220, 7974, 8145, 11945, 12155, 17237, 17490, 24114, 24414, 32864, 33215, 43799, 44205, 57255, 57720, 73592, 74120, 93194, 93789, 116469, 117135, 143849, 144590, 175790 (list; graph; refs; listen; history; internal format)
OFFSET

0,2

EXAMPLE

{1,2,3} -> 1*2-1*3+2*3 = 5

{1,2,3,4} -> 1*2-1*3+1*4+2*3+2*4+3*4 = 29

{1,2,3,4,5} -> 1*2-1*3+1*4-1*5+2*3+2*4+2*5+3*4-3*5+4*5 = 39

MAPLE

P:=proc(n) local a, i, j, k, w; for i from 1 by 1 to n do a:=0; for j from 1 by 1 to i do w:=j; k:=i; while k>w do a:=a+w*k*(-1)^(w*k); k:=k-1; od; od; print(a); od; end: P(100);

CROSSREFS

Cf. A000914, A000915.

Sequence in context: A178322 A165161 A098858 * A103579 A161500 A061351

Adjacent sequences:  A134446 A134447 A134448 * A134450 A134451 A134452

KEYWORD

easy,nonn

AUTHOR

Paolo P. Lava & Giorgio Balzarotti (paoloplava(AT)gmail.com), Jan 31 2008

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 06:27 EST 2012. Contains 205998 sequences.