OFFSET
1,4
LINKS
Iain Fox, Table of n, a(n) for n = 1..10000 (first 1000 terms from Colin Barker)
Index entries for linear recurrences with constant coefficients, signature (0,0,4,0,0,-6,0,0,4,0,0,-1).
FORMULA
From Colin Barker, Dec 02 2015: (Start)
a(n) = 4*a(n-3) - 6*a(n-6) + 4*a(n-9) - a(n-12) for n > 12.
G.f.: x*(1+x+x^2-2*x^3+4*x^4+x^6+x^7-x^8) / ((1-x)^4*(1+x+x^2)^4).
(End)
a(n) = floor((n+2)/3)^((3*(n mod 3)^2-5*(n mod 3)+4)/2). - Luce ETIENNE, Dec 17 2017
MAPLE
map(t -> (t, t^3, t^2), [$1..100]); # Robert Israel, Dec 17 2017
MATHEMATICA
Flatten[Table[{n, n^3, n^2}, {n, 20}]] (* Harvey P. Dale, Jul 22 2012 *)
PROG
(PARI) Vec(x*(1+x+x^2-2*x^3+4*x^4+x^6+x^7-x^8)/((1-x)^4*(1+x+x^2)^4) + O(x^100)) \\ Colin Barker, Dec 02 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Mohammad K. Azarian, Aug 30 2005
STATUS
approved