OFFSET
1,2
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..500
Index entries for linear recurrences with constant coefficients, signature (28,-253,976,-1675,1300,-375).
FORMULA
a(n) = 15^n - (4*n + 1)*5^n + 2*n*(4*n + 1). - Andrew Howroyd, May 06 2020
From Colin Barker, May 06 2020: (Start)
G.f.: 4*x^2*(9 + 205*x - 485*x^2 - 625*x^3) / ((1 - x)^3*(1 - 5*x)^2*(1 - 15*x)).
a(n) = 28*a(n-1) - 253*a(n-2) + 976*a(n-3) - 1675*a(n-4) + 1300*a(n-5) - 375*a(n-6) for n > 6. (End)
E.g.f.: exp(15*x) - (1+20*x)*exp(5*x) + 2*x*(5+4*x)*exp(x). - G. C. Greubel, Sep 08 2022
MATHEMATICA
Table[Sum[(-1)^j*Binomial[4*n+1, j]*Binomial[6-j, 4]^n, {j, 0, 2}], {n, 30}] (* G. C. Greubel, Sep 08 2022 *)
PROG
(PARI) a(n) = {15^n - (4*n + 1)*5^n + 2*n*(4*n + 1)} \\ Andrew Howroyd, May 06 2020
(PARI) concat(0, Vec(4*x^2*(9 + 205*x - 485*x^2 - 625*x^3) / ((1 - x)^3*(1 - 5*x)^2*(1 - 15*x)) + O(x^20))) \\ Colin Barker, May 07 2020
(Magma) [15^n -(4*n+1)*5^n +2*n*(4*n+1): n in [1..30]]; // G. C. Greubel, Sep 08 2022
(SageMath) [15^n -(4*n+1)*5^n +2*n*(4*n+1) for n in (1..30)] # G. C. Greubel, Sep 08 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
R. H. Hardin, May 29 2009
EXTENSIONS
Terms a(9) and beyond from Andrew Howroyd, May 06 2020
STATUS
approved
