OFFSET
0,3
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (3,-3,2,-3,3,-1).
FORMULA
From R. J. Mathar, Dec 19 2008: (Start)
G.f.: x^2*(2 + 3*x + x^3)/((1 - x)^4*(1 + x + x^2)).
a(n) = (3*n^3 + 3*cos(2*Pi*n/3) + sqrt(3)*sin(2*Pi*n/3) - 3)/9. - Vladimir Reshetnikov, Oct 09 2016
a(n) = (n - 1)*n*(n + 1)/3 + floor(n/3). - Bruno Berselli, Jun 08 2017
MATHEMATICA
Table[Quotient[n^3, 3], {n, 0, 80}] (* Vladimir Joseph Stephan Orlovsky, May 07 2011 *)
PROG
(Magma) [Floor(n^3/3): n in [0..50]]; // Vincenzo Librandi, May 08 2011
(PARI) a(n)=n^3\3 \\ Charles R Greathouse IV, May 08 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Mohammad K. Azarian, Jul 27 2007
STATUS
approved