OFFSET
1,2
LINKS
FORMULA
a(n) = max{1, 5*n-9+2*(-1)^n}.
From Colin Barker, Jul 22 2012: (Start)
a(n) = a(n-1) + a(n-2) - a(n-3) for n>4.
G.f.: x*(1+2*x+7*x^3)/((1-x)^2*(1+x)). (End)
Conjecture: Except for the first term, a(n)=10*n-a(n-1)-23 (with a(2)=3). - Vincenzo Librandi, Dec 07 2010 [This is easily proved. - N. J. A. Sloane, Aug 07 2017]
Sum_{n>=1} (-1)^(n+1)/a(n) = 1 - sqrt(1-2/sqrt(5))*Pi/(10*phi) + log(phi)/(2*sqrt(5)) - log(2)/5, where phi is the golden ratio (A001622). - Amiram Eldar, Apr 15 2023
MATHEMATICA
Join[{1}, LinearRecurrence[{1, 1, -1}, {3, 4, 13}, 60]] (* Harvey P. Dale, Aug 19 2014 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Bela Bajnok (bbajnok(AT)gettysburg.edu), Aug 10 2005
EXTENSIONS
Definition corrected by Bela Bajnok (bbajnok(AT)gettysburg.edu) and N. J. A. Sloane, Aug 07 2017
STATUS
approved