OFFSET
0,5
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (1,0,2,-2,0,-1,1)
FORMULA
From R. J. Mathar, Jan 27 2011: (Start)
G.f. -x^3*(1+x) / ( (1+x+x^2)^2*(x-1)^3 ). (End)
MAPLE
MATHEMATICA
f[n_]:=Ceiling[n/3]*Floor[n/3]; Table[f[n], {n, 0, 5!}] (* Vladimir Joseph Stephan Orlovsky, Mar 01 2010 *)
CoefficientList[Series[- x^3 (1 + x) / ((1 + x + x^2)^2 (x - 1)^3), {x, 0, 60}], x] (* Vincenzo Librandi, Jun 10 2013 *)
LinearRecurrence[{1, 0, 2, -2, 0, -1, 1}, {0, 0, 0, 1, 2, 2, 4}, 60] (* Harvey P. Dale, Dec 31 2016 *)
PROG
(Magma) [Floor(n/3)*Ceiling(n/3): n in [0..60]]; // Vincenzo Librandi, Jun 10 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved