OFFSET
1,2
COMMENTS
a(n) mod 2 = A011655(n+1);
a(n) = a(n-1) + Sum(a(k)*(a(k) mod 2): 1<=k<n), a(1) = 1.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
Eric Weisstein's World of Mathematics, Odd Number
FORMULA
Empirical g.f.: -x*(x-1)*(x^4+3*x^3+6*x^2+3*x+1) / (x^6-10*x^3+1). - Colin Barker, Mar 29 2013
MATHEMATICA
nxt[{ot_, a_}]:=Module[{x=a+ot}, {If[OddQ[x], ot+x, ot], x}]; NestList[nxt, {1, 1}, 30][[All, 2]] (* Harvey P. Dale, Dec 18 2020 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Jun 14 2007
STATUS
approved