login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

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
OFFSET
0,4
FORMULA
From 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
Cf. A124625.
Sequence in context: A273105 A370370 A307966 * A263673 A304987 A305814
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, May 26 2007
STATUS
approved