OFFSET
1,4
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (0,0,4,0,0,-6,0,0,4,0,0,-1).
FORMULA
From Chai Wah Wu, Jul 16 2016: (Start)
a(n) = 4*a(n-3) - 6*a(n-6) + 4*a(n-9) - a(n-12) for n > 12.
G.f.: x*(x^8 + x^7 - x^6 + 4*x^5 - 2*x^4 + x^2 + x + 1)/((x - 1)^4*(x^2 + x + 1)^4). (End)
a(n) = floor((n+2)/3)^(-(n mod 3)+3). - Luce ETIENNE, Mar 01 2018
MATHEMATICA
Table[{n^2, n, n^3}, {n, 20}] // Flatten (* Bruno Berselli, Sep 01 2016 *)
PROG
(Magma) &cat[[n^2, n, n^3]: n in [1..20]]; // Bruno Berselli, Sep 01 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Mohammad K. Azarian, Aug 30 2005
STATUS
approved