OFFSET
0,3
COMMENTS
Suggested by a problem in stacking tetrahedra and cubes.
LINKS
Index entries for linear recurrences with constant coefficients, signature (3,-2,-2,3,-1).
FORMULA
G.f.: (1-2*x+8*x^2+4*x^3+x^4)/((1-x)^4*(1+x)). [Colin Barker, May 09 2012]
MATHEMATICA
f[n_] := If[Mod[n, 2] == 0, n^3 + 1, n^3]; Table[f[n], {n, 0, 30}]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Roger L. Bagula, Jun 10 2007
EXTENSIONS
Edited, corrected and extended by Stefan Steinerberger, Jul 21 2007
STATUS
approved