OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (1,1,-1).
FORMULA
G.f.: x*(2 + 5*x - 2*x^2)/( (1+x)*(x-1)^2 ). - R. J. Mathar, Jan 05 2011
a(n) = A016873(floor(n/2)). - R. J. Mathar, Jan 05 2011
a(n) = A168282(n) + 1. - Bruno Berselli, Sep 16 2013
E.g.f.: (1/4)*(5 - 8*exp(x) + (3 + 10*x)*exp(2*x))*exp(-x). - G. C. Greubel, Jul 16 2016
MATHEMATICA
Table[5 n/2 + 3/4 + 5 (-1)^n/4, {n, 70}] (* Bruno Berselli, Sep 16 2013 *)
CoefficientList[Series[- (- 2 - 5 x + 2 x^2) / ((1 + x) (x - 1)^2), {x, 0, 70}], x] (* Vincenzo Librandi, Sep 16 2013 *)
PROG
(Magma) [5*n/2+3/4+5*(-1)^n/4: n in [1..70]]; // Vincenzo Librandi, Sep 16 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Nov 22 2009
EXTENSIONS
New definition by R. J. Mathar, Jan 05 2011
STATUS
approved