OFFSET
1,3
LINKS
Ivan Neretin, Table of n, a(n) for n = 1..10000
MATHEMATICA
Nest[Append[#, If[MemberQ[Append[#, 0], r = Quotient[#[[-1]], 2]], #[[-1]] + #[[-2]], r]] &, {1, 1}, 59] (* Ivan Neretin, Mar 02 2016 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved