OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (24,-216,864,-1296).
FORMULA
G.f.: 12*x*(1 + 6*x + 36*x^2)/(1 - 6*x)^4. - Vincenzo Librandi, Feb 22 2013
E.g.f.: 12*exp(6*x)*x*(1 + 9*x + 18*x^2). - Stefano Spezia, Dec 27 2025
MATHEMATICA
Table[(n^3 + n) * 6^n, {n, 30}] (* or *) CoefficientList[Series[12 (1 + 6 x + 36 x^2)/(1 - 6 x)^4, {x, 0, 30}], x] (* Vincenzo Librandi, Feb 22 2013 *)
PROG
(Magma) [(n^3 + n)*6^n: n in [1..20]]; // Vincenzo Librandi, Feb 22 2013
(Python)
print([(n**3 + n)*6**n for n in range(1, 30)]) # Aidan Chen, Dec 25 2025
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Mohammad K. Azarian, May 02 2007
STATUS
approved
