OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (6,-10,-4,23,-10,-12,8).
FORMULA
a(n) = (3*n^2 +n +10)*2^(n+3)/27 +(n/4 +1)*(-1)^n/27 -n/4 -2. - Bruno Berselli, Jun 24 2013
E.g.f.: (1/108)*( (4-x)*exp(-x) - 27*(8+x)*exp(x) + 64*(5+4*x+6*x^2)*exp(2*x) ). - G. C. Greubel, Oct 22 2024
MATHEMATICA
CoefficientList[Series[1/((1-2 x)^3 (1-x^2)^2), {x, 0, 40}], x] (* Vincenzo Librandi, Jun 23 2013 *)
PROG
(Magma) R<x>:=PowerSeriesRing(Integers(), 40); Coefficients(R!(1/(1-2*x)^3/(1-x^2)^2)); // Vincenzo Librandi, Jun 24 2013
(SageMath)
def A011780(n): return (2^(n+5)*(10 +n +3*n^2) +(-1)^n*(4+n) -27*n -216)//108
[A011780(n) for n in range(41)] # G. C. Greubel, Oct 22 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved