OFFSET
1,2
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
a(n) = 10*n - a(n-1) - 8 with n>1, a(1)=1.
From Bruno Berselli, Sep 16 2013: (Start)
G.f.: x*(1 + 10*x - x^2)/((1+x)*(1-x)^2).
a(n) = a(n-1) +a(n-2) -a(n-3). (End)
a(n) = 1 + 10*floor(n/2). - Vincenzo Librandi, Sep 19 2013
E.g.f.: (1/2)*(5 - 2*exp(x) + (10*x - 3)*exp(2*x))*exp(-x). - G. C. Greubel, Jul 23 2016
MATHEMATICA
Table[5 n + 5 (-1)^n/2 - 3/2, {n, 60}] (* Bruno Berselli, Sep 16 2013 *)
Table[1 + 10 Floor[n/2], {n, 70}] (* or *) CoefficientList[Series[(1 + 10 x - x^2)/((1 + x) (x - 1)^2), {x, 0, 70}], x] (* Vincenzo Librandi, Sep 19 2013 *)
PROG
(Magma) [1+10*Floor(n/2): n in [1..70]]; // Vincenzo Librandi, Sep 19 2013
CROSSREFS
KEYWORD
nonn,easy,less
AUTHOR
Vincenzo Librandi, Nov 26 2009
EXTENSIONS
New definition by Bruno Berselli, Sep 16 2013
STATUS
approved
