OFFSET
0,3
COMMENTS
This is a variation of Recamán's sequence A005132, where the step size is calculated from the Comma transform of the previous two terms, see A367360 and A121805. As the maximum step size is 99, it is likely that many numbers never appear. In the first 10 million terms the smallest numbers that do appear are 0,1,2,8,10,11,14,17,21,22. The first number to appear twice is 84. The terms show a broadly repetitive pattern that repeats every order of magnitude, although slight differences are still present; see the two attached images.
LINKS
Scott R. Shannon, Table of n, a(n) for n = 0..10000.
Scott R. Shannon, Image of the first 100000 terms. The green line is a(n) = n.
Scott R. Shannon, Image of the first 10000000 terms.
EXAMPLE
a(2) = 2 as CT(a(0),a(1)) = CT(0,1) = 1, so a(2) = a(1) + 1 = 2.
a(3) = 14 as CT(a(1),a(2)) = CT(1,2) = 12, so a(3) = a(2) + 12 = 14.
a(7) = 21 as CT(a(5),a(6)) = CT(35,78) = 57, so a(7) = a(6) - 57 = 21, as 21 is nonnegative and not already in the sequence.
CROSSREFS
KEYWORD
AUTHOR
Scott R. Shannon, Nov 25 2023
STATUS
approved