OFFSET
0,3
COMMENTS
The main concentration of terms lies near the line a(n) = n; there are 26 fixed points in the first 100000 terms. The sequence is conjectured to be a permutation of the positive integers.
LINKS
Scott R. Shannon, Image for n = 0..100000.
EXAMPLE
a(9) = 9 as the concatenation of a(0)..a(8) in binary is "0110111001011010110111" and 9 plus the largest previous term = 9 + 10 = 19 = 10011_2 which does not appear in the concatenated string. Since 10 + 8 = 18 = 10010_2 appears in the concatenated string, a(9) cannot be 8.
PROG
(Python)
from itertools import islice
def agen():
aset, astr, an, mink = {0}, "0", 0, 1
while True:
yield an; k, m = mink, max(aset)
while k in aset or bin(m+k)[2:] in astr: k += 1
while mink in aset: mink += 1
an = k; aset.add(an); astr += bin(an)[2:]
print(list(islice(agen(), 77))) # Michael S. Branicky, Sep 29 2022
CROSSREFS
KEYWORD
AUTHOR
Scott R. Shannon, Sep 29 2022
STATUS
approved