OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..500
Index entries for linear recurrences with constant coefficients, signature (18,-92,120).
FORMULA
From Vincenzo Librandi, Sep 01 2011: (Start)
a(n) = (2^n - 18*6^n + 25*10^n)/8.
a(n) = 18*a(n-1) - 92*a(n-2) + 120*a(n-3) for n > 2.
a(n) = 16*a(n-1) - 60*a(n-2) + 2^n for n > 1. (End)
From Seiichi Manyama, May 04 2025: (Start)
a(n) = Sum_{k=0..n} 4^k * 2^(n-k) * binomial(n+2,k+2) * Stirling2(k+2,2).
a(n) = Sum_{k=0..n} (-4)^k * 10^(n-k) * binomial(n+2,k+2) * Stirling2(k+2,2). (End)
E.g.f.: exp(2*x)*(1 - 18*exp(4*x) + 25*exp(8*x))/8. - Stefano Spezia, May 04 2025
MATHEMATICA
CoefficientList[Series[1/((1-2x)(1-6x)(1-10x)), {x, 0, 30}], x] (* Harvey P. Dale, Nov 06 2019 *)
(* Alternative: *)
LinearRecurrence[{18, -92, 120}, {1, 18, 232}, 30] (* Harvey P. Dale, Nov 06 2019 *)
PROG
(Magma) [(2^n-18*6^n+25*10^n)/8: n in [0..20]]; // Vincenzo Librandi, Sep 01 2011
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
STATUS
approved
