OFFSET
3,1
FORMULA
a(n) = n*A055523(n)/2.
a(2k) = k*(k+1)*(k-1), a(2k+1) = k*(k+1)*(2k+1).
O.g.f.: 6*x^3*(x+1+x^2)/((1-x)^4*(1+x)^4). a(2k+1)=A055112(k). a(2k)=A007531(k+1). [R. J. Mathar, Aug 06 2008]
a(n) = n*(3*(n^2-2)-(n^2+2)*(-1)^n)/16. - Luce ETIENNE, Jul 17 2015
MAPLE
seq(piecewise(n mod 2 = 0, n*(n^2-4)/8, n*(n^2-1)/4), n=3..60); # C. Ronaldo
MATHEMATICA
Table[n*(3*(n^2 - 2) - (n^2 + 2)*(-1)^n)/16, {n, 3, 50}] (* Wesley Ivan Hurt, Apr 27 2017 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Henry Bottomley, May 22 2000
STATUS
approved