login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A249997
Expansion of 1/((1-x)*(1+3*x)*(1-4*x)).
4
1, 2, 15, 40, 221, 702, 3355, 11780, 52041, 193402, 817895, 3138720, 12953461, 50618102, 206059635, 813476860, 3286192481, 13047914802, 52482224575, 209057202200, 838843897101, 3347530323502, 13413657088715, 53584020970740, 214547906035321, 857556157684202
OFFSET
0,2
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