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
a(n) = floor((n+2)/3)^((-3*(n mod 3)^2+7*(n mod 3)+2)/2). - Luce ETIENNE, Mar 01 2018
MATHEMATICA
Flatten[Table[{n^3, n^2, n}, {n, 20}]] (* or *) LinearRecurrence[{0, 0, 4, 0, 0, -6, 0, 0, 4, 0, 0, -1}, {1, 1, 1, 8, 4, 2, 27, 9, 3, 64, 16, 4}, 60] (* Harvey P. Dale, Aug 22 2014 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Mohammad K. Azarian, Aug 30 2005
STATUS
approved