OFFSET
1,2
LINKS
Ivan Neretin, Table of n, a(n) for n = 1..10000
MATHEMATICA
Rest@Nest[Append[#, If[FreeQ[#, r = Quotient[#[[-1]], 5]], r, 2 #[[-1]]]] &, {0, 1}, 53] (* Ivan Neretin, Jul 31 2016 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved