OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (2,0,-2,1).
FORMULA
From Colin Barker, Mar 04 2013: (Start)
a(n) = (5+3*(-1)^n+28*n+2*n^2)/8.
a(n) = 2*a(n-1)-2*a(n-3)+a(n-4).
G.f.: (3*x^3-x^2-2*x-1) / ((x-1)^3*(x+1)). (End)
Sum_{n>=0} 1/a(n) = 983/990 + tan(3*sqrt(5)*Pi/2)*Pi/(3*sqrt(5)) - cot(2*sqrt(3)*Pi)*Pi/(4*sqrt(3)). - Amiram Eldar, Sep 24 2022
MATHEMATICA
CoefficientList[Series[(3 x^3 - x^2 - 2 x - 1)/((x - 1)^3 (x + 1)), {x, 0, 60}], x] (* Vincenzo Librandi, Oct 20 2013 *)
PROG
(Magma) [(5+3*(-1)^n+28*n+2*n^2)/8: n in [0..60]]; // Vincenzo Librandi, Oct 20 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
More terms from Vincenzo Librandi, Oct 20 2013
STATUS
approved