OFFSET
0,1
COMMENTS
The first repeated number in each sequence starting from n is given in A334148.
The number of terms in each sequence starting from n required to reach a value greater than n given in A334149.
Essentially the same as A308419. - R. J. Mathar, May 06 2020
LINKS
Scott R. Shannon, Table of n, a(n) for n = 0..10000
Scott R. Shannon, Plot of the terms for n = 0 to 1000000
EXAMPLE
a(0) = 24 as a(0) corresponds to the standard Recamán's sequence A005132 in which the term 42 appears at A005132(20) and then again at A005132(24), taking twenty-four terms before the first repeated number appears.
a(4) = 3 as starting from 4 the sequence of visited numbers is 4,3,1,4 and it takes three steps beyond the start value for the first repeated number 4 to appear.
a(6) = 15 as starting from 6 the sequence of visited numbers is 6,5,3,0,4,9,15,8,16,7,17,28,40,27,13,28 and it takes fifteen steps beyond the start value for the first repeated number 28 to appear.
CROSSREFS
KEYWORD
nonn
AUTHOR
Scott R. Shannon, Apr 19 2020
STATUS
approved