OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (0,1,0,1).
FORMULA
a(n)= a(n-2) +a(n-4). G.f.: x*(-2-3*x-3*x^2+x^3)/(-1+x^2+x^4). a(2n+1) = A001060(n). a(2n) = A013655(n-1). [From R. J. Mathar, Apr 14 2010]
MATHEMATICA
nxt[{n_, a_, b_}]:={n+1, b, If[EvenQ[n], b-a, b+a]}; Transpose[ NestList[ nxt, {1, 2, 3}, 50]][[2]] (* or *) LinearRecurrence[{0, 1, 0, 1}, {2, 3, 5, 2}, 51] (* Harvey P. Dale, Jan 06 2012 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Giovanni Teofilatto, Mar 22 2010
EXTENSIONS
a(44) corrected by R. J. Mathar, Apr 14 2010
Precise definition from R. J. Mathar, Aug 23 2010
STATUS
approved