OFFSET
0,2
COMMENTS
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
FORMULA
G.f.: (1 - 8*x^2 + 6*x^3 - 11*x^4)/((1-x)^4*(1-3*x)). - Vincenzo Librandi, Dec 18 2012
EXAMPLE
a(1) = 1^3 + 3*1 + 3^1 = 7.
a(2) = 2^3 + 3*2 + 3^2 = 23.
MATHEMATICA
Table[n^3 + 3*n + 3^n, {n, 0, 30}] (* T. D. Noe, Dec 17 2012 *)
CoefficientList[Series[(1 - 8*x^2 + 6*x^3 - 11*x^4)/((1-x)^4*(1-3x)), {x, 0, 40}], x] (* Vincenzo Librandi, Dec 18 2012 *)
PROG
(Magma) [n^3 + 3*n + 3^n: n in [0..30]]; // Vincenzo Librandi, Dec 18 2012
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Jonathan Vos Post, Dec 15 2012
STATUS
approved