OFFSET
0,3
COMMENTS
This sequence uses the same rules as Recamán's sequence A005132 except that the step size for each term n is set to the minimum of n and a(n-1).
The terms are slightly concentrated along the linear relationships a(n) = k*n, where k is an integer >= 1. Other values are distributed between these lines. See the linked image.
The smallest value not to have appeared after 5 million terms is 8697. It is unknown if all terms eventually appear.
LINKS
Scott R. Shannon, Image of the first 5 million terms.
EXAMPLE
a(3) = 4 as min(3,a(2)) = min(3,2) = 2, and as 0 has already appeared a(3) = a(2) + 2 = 2 + 2 = 4.
a(5) = 3 as min(5,a(4)) = min(5,8) = 5, and as 3 has not already appeared a(5) = a(4) - 5 = 8 - 5 = 3.
CROSSREFS
KEYWORD
nonn
AUTHOR
Scott R. Shannon, Jan 17 2021
STATUS
approved