OFFSET
0,3
LINKS
Index entries for linear recurrences with constant coefficients, signature (1,0,3,-3,0,-3,3,0,1,-1).
FORMULA
a(n) = a(n-1)+3*a(n-3)-3*a(n-4)-3*a(n-6)+3*a(n-7)+a(n-9)-a(n-10).
G.f.: (x^2 + 7*x^3 + 18*x^4 + 34*x^5 + 40*x^6 + 30*x^7 + 19*x^8 + 7*x^9)/(1 - x - 3*x^3 + 3*x^4 + 3*x^6 - 3*x^7 - x^9 + x^10).
MATHEMATICA
a[n_] := n^3 - Floor[n/3]^3
Table[a[n], {n, 0, 90}] (* A213039 *)
LinearRecurrence[{1, 0, 3, -3, 0, -3, 3, 0, 1, -1}, {0, 1, 8, 26, 63, 124, 208, 335, 504, 702}, 90]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Jun 06 2012
STATUS
approved