OFFSET
1,4
LINKS
Index entries for linear recurrences with constant coefficients, signature (0,0,4,0,0,-6,0,0,4,0,0,-1).
FORMULA
G.f.: x*(1+x+x^2+4*x^4-2*x^5-x^6+x^7+x^8) / ( (x-1)^4*(1+x+x^2)^4 ). - R. J. Mathar, Mar 03 2014
a(n) = floor((n+2)/3)^((n mod 3)+1). - Luce ETIENNE, Mar 01 2018
MATHEMATICA
Table[{n^2, n^3, n}, {n, 20}]//Flatten (* or *) LinearRecurrence[{0, 0, 4, 0, 0, -6, 0, 0, 4, 0, 0, -1}, {1, 1, 1, 4, 8, 2, 9, 27, 3, 16, 64, 4}, 60] (* Harvey P. Dale, May 26 2018 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Mohammad K. Azarian, Aug 30 2005
STATUS
approved