OFFSET
0,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (2,11,-12).
FORMULA
G.f.: 1/((1-x) * (1+3*x) * (1-4*x)).
a(n) = (-1)^n*3^(n+2)/28 + 4^(n+2)/21 -1/12. - R. J. Mathar, Jan 09 2015
E.g.f.: (1/84)*(27*exp(-3*x) - 7*exp(x) + 64*exp(4*x)). - G. C. Greubel, Jul 21 2022
MATHEMATICA
LinearRecurrence[{2, 11, -12}, {1, 2, 15}, 50] (* G. C. Greubel, Jul 21 2022 *)
PROG
(Magma) [((-1)^n*3^(n+3) +4^(n+3) -7)/84: n in [0..50]]; // G. C. Greubel, Jul 21 2022
(SageMath) [((-1)^n*3^(n+3) +4^(n+3) -7)/84 for n in (0..50)] # G. C. Greubel, Jul 21 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Alex Ratushnyak, Dec 28 2014
STATUS
approved