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