OFFSET
0,3
LINKS
Index entries for linear recurrences with constant coefficients, signature (3,-3,2,-3,3,-1).
FORMULA
G.f. x*(1+5*x+5*x^2+7*x^3) / ( (1+x+x^2)*(x-1)^4 ). - R. J. Mathar, Mar 08 2013
MATHEMATICA
Table[n^3-Floor[n/3], {n, 0, 40}] (* or *) LinearRecurrence[{3, -3, 2, -3, 3, -1}, {0, 1, 8, 26, 63, 124}, 40] (* Harvey P. Dale, Apr 23 2020 *)
PROG
(PARI) a(n) = n^3 - floor( n/3 ) \\ Michel Marcus, Jun 19 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
ochavez(AT)spin.com.mx (Oscar Chavez)
STATUS
approved