OFFSET
0,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (7,-18,22,-13,3).
FORMULA
G.f.: (x^4+18*x^3-10*x^2+4*x-1) / ((x-1)^4*(3*x-1)). - Colin Barker, Apr 25 2014
MATHEMATICA
Table[n^3+(3^n+1)/2, {n, 0, 40}] (* or *) LinearRecurrence[{7, -18, 22, -13, 3}, {1, 3, 13, 41, 105}, 40] (* Harvey P. Dale, Mar 01 2024 *)
PROG
(Magma) [n^3 + (3^n+1)/2: n in [0..29]]; // Juri-Stepan Gerasimov, Apr 25 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Gerasimov Sergey, Apr 24 2014
STATUS
approved