OFFSET
0,2
COMMENTS
Binomial transform of A094374.
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (9,-26,24).
FORMULA
G.f.: (1-5*x+5*x^2)/((1-2*x)*(1-3*x)*(1-4*x)).
a(n) = 9*a(n-1) - 26*a(n-2) + 24*a(n-3).
E.g.f.: exp(3*x)*(1 + sinh(x)). - G. C. Greubel, Sep 26 2024
MATHEMATICA
LinearRecurrence[{9, -26, 24}, {1, 4, 15}, 31] (* G. C. Greubel, Sep 26 2024 *)
PROG
(Magma) [2^(n-1)*(2^n -1) +3^n: n in [0..30]]; // G. C. Greubel, Sep 26 2024
(SageMath) [(4^n +2*3^n -2^n)//2 for n in range(31)] # G. C. Greubel, Sep 26 2024
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Apr 28 2004
STATUS
approved