OFFSET
0,3
COMMENTS
This is a variation of A367578, where one can choose more than one digit from both a(n-2) and a(n-1) to create the largest possible step to a nonnegative number which has not previously appeared to form a(n). If all such numbers have already appeared the smallest possible forward step is chosen, which is just the standard Comma transform of a(n-2) and a(n-1).
It is conjectured that all nonnegative numbers appear in the sequence. After the first 10 million terms the only fixed points are 0, 1, 2, 29, 65, 84, 222, 377, 491, 499, and it is likely no more exist. The first number to appear twice is a(35) = a(44) = 166.
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 10 million terms.
EXAMPLE
a(3) = 14 as CT(a(1),a(2)) = CT(1,2) = 12, so a(3) = a(2) + 12 = 14.
a(6) = 21 as GCT(a(4),a(5)) = GCT(35,78) = 57, so a(6) = a(5) - 57 = 21, as 21 is nonnegative and not already in the sequence.
a(13) = 132 as GCT(a(11),a(12)) = GCT(60,146) = 14, so a(13) = a(12) - 14 = 132, as 132 is nonnegative and not already in the sequence. This is the first term to differ from A367578.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Scott R. Shannon, Nov 25 2023
STATUS
approved