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”).

A246986
Expansion of (1-5*x+6*x^2-x^3)/((1-x)*(1-2*x)*(1-3*x)*(1-4*x)).
1
1, 5, 21, 84, 331, 1300, 5111, 20144, 79611, 315420, 1252351, 4980904, 19837091, 79086740, 315557991, 1259856864, 5032285771, 20107685260, 80366302031, 321271760024, 1284506433651, 5136283390980, 20539905484471, 82143935602384, 328528679208731, 1313973518843900, 5255470464625311, 21020610992695944
OFFSET
0,2
FORMULA
a(n) = (3^(n+1)+7*4^n-3*2^n-1)/6. - Todd Silvestri, Nov 16 2014
MATHEMATICA
a[n_Integer/; n>=0]:=(3^(n+1)+7*4^n-3*2^n-1)/6 (* Todd Silvestri, Nov 16 2014 *)
CoefficientList[Series[(1 - 5 t + 6 t^2 - t^3) / ((1 - t) (1 - 2 t) (1 - 3 t) (1 - 4 t)), {t, 0, 40}], t] (* Vincenzo Librandi, Nov 16 2014 *)
LinearRecurrence[{10, -35, 50, -24}, {1, 5, 21, 84}, 30] (* Harvey P. Dale, May 12 2017 *)
PROG
(Magma) [(3^(n+1)+7*4^n-3*2^n-1)/6: n in [0..30]]; // Vincenzo Librandi, Nov 16 2014
(PARI) Vec((1-5*x+6*x^2-x^3)/((1-x)*(1-2*x)*(1-3*x)*(1-4*x)) + O(x^30)) \\ Michel Marcus, Jan 14 2016
CROSSREFS
Sequence in context: A026027 A002054 A289797 * A272547 A247001 A271157
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Sep 15 2014
STATUS
approved