OFFSET
1,3
COMMENTS
This sequence hits every positive integer.
LINKS
Altug Alkan, A log plot of a(n)/n
FORMULA
a(n+1) - a(n) = 0 or 1 for all n >= 1.
MATHEMATICA
Nest[Function[{a, n}, Append[a, a[[Floor@ Log@ n]] + a[[n - Floor@ Log@ n]] ] ] @@ {#, Length@ # + 1} &, {1, 1}, 74] (* Michael De Vlieger, Jul 30 2018 *)
PROG
(PARI) q=vector(100); for(n=1, 2, q[n]=1); for(n=3, #q, q[n]=q[floor(log(n))] + q[n-floor(log(n))]); q
CROSSREFS
KEYWORD
nonn
AUTHOR
Altug Alkan, Jul 28 2018
STATUS
approved