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
From R. J. Mathar, Jan 03 2011: (Start)
a(n+1) = A016969(floor(n/2)).
G.f.: x*(5 + x^2)/((1+x)*(1-x)^2). (End)
a(n) = (6*n - 3*(-1)^n + 1)/2. - Bruno Berselli, Apr 14 2011
E.g.f.: (1/2)*(-3 + 2*exp(x) + (1 + 6*x)*exp(2*x))*exp(-x). - G. C. Greubel, Jul 17 2016
MATHEMATICA
Table[(6*n-3*(-1)^n+1)/2, {n, 1, 70}] (* Vincenzo Librandi, Feb 22 2012 *)
LinearRecurrence[{1, 1, -1}, {5, 5, 11}, 50] (* G. C. Greubel, Jul 17 2016 *)
PROG
(Magma) [n le 2 select 5 else 6*n-Self(n-1)-2: n in [1..60]]; // Bruno Berselli, Apr 14 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Nov 22 2009
EXTENSIONS
G.f. corrected by Bruno Berselli, Apr 14 2011
STATUS
approved