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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A129889 Write down n, then n*(n+1). 3
0, 0, 1, 2, 2, 6, 3, 12, 4, 20, 5, 30, 6, 42, 7, 56, 8, 72, 9, 90, 10, 110, 11, 132, 12, 156, 13, 182, 14, 210, 15, 240, 16, 272, 17, 306, 18, 342, 19, 380, 20, 420, 21, 462, 22, 506, 23, 552, 24, 600, 25, 650, 26, 702, 27, 756, 28, 812, 29, 870, 30, 930, 31, 992, 32, 1056, 33 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,4

LINKS

Bruno Berselli, Table of n, a(n) for n = 0..1000

Index entries for linear recurrences with constant coefficients, signature (0,3,0,-3,0,1).

FORMULA

Contribution by Bruno Berselli, May 06 2011: (Start)

G.f.: x^2*(1+2*x-x^2)/(1-x^2)^3.

a(n) = ((1+2*n-n^2)*(-1)^n -(1-2*n-n^2))/8.

a(n) = a(n-2) + A124625(n) for n>1. (End)

MAPLE

f:=n-> if n mod 2 = 0 then n/2 else (n^2-1)/4; fi;

MATHEMATICA

Flatten[Table[{n, n(n+1)}, {n, 0, 40}]] (* Harvey P. Dale, Jun 21 2015 *)

PROG

(MAGMA) [IsEven(n) select n/2 else (n^2-1)/4: n in [0..66]]; // Bruno Berselli, May 06 2011

CROSSREFS

Sequence in context: A240578 A273105 A307966 * A263673 A304987 A305814

Adjacent sequences:  A129886 A129887 A129888 * A129890 A129891 A129892

KEYWORD

nonn

AUTHOR

N. J. A. Sloane, May 26 2007

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified November 22 00:32 EST 2019. Contains 329383 sequences. (Running on oeis4.)