OFFSET
0,3
COMMENTS
Conjecture: This is a surjection onto A032766.
LINKS
Peter Kagey, Table of n, a(n) for n = 0..10000
Laura Kuttnig, One step forward - two steps back --- Recamán Variation, Youtube video, Feb 28, 2019.
Reddit user NonEuclideanDreamer, One step forward - two steps back --- A Variation of the Recamán Sequence
MATHEMATICA
Nest[Append[#1, If[And[#3 >= 0, FreeQ[#1, #3]], #3, Last[#1] + #2]] & @@ {#1, #2, Last[#1] - 2 #2} & @@ {#, Length@ #} &, {0}, 62] (* Michael De Vlieger, Mar 11 2019 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Peter Kagey, Mar 05 2019
STATUS
approved