OFFSET
1,2
COMMENTS
The fixed points begin 1, 2, 3, 94, 1420, 1423, 1425, 1426, 1427, 8592, although it is likely there are infinitely more. The sequence is conjectured to be a permutation of the positive numbers.
LINKS
Scott R. Shannon, Table of n, a(n) for n = 1..10000
Scott R. Shannon, Image of the first 50000 terms.
EXAMPLE
a(6) = 4 as the sum of all previous terms is 1 + 2 + 3 + 6 + 12 = 24, and 4 is the smallest unused number that is a substring of "24".
PROG
(Python)
from itertools import islice
def agen(): # generator of terms
s, mink, aset = 3, 3, {1, 2}
yield from [1, 2]
while True:
an, ss = mink, str(s)
while an in aset or not str(an) in ss: an += 1
aset.add(an); s += an; yield an
while mink in aset: mink += 1
print(list(islice(agen(), 74))) # Michael S. Branicky, Feb 08 2024
CROSSREFS
KEYWORD
AUTHOR
Scott R. Shannon, Feb 05 2024
STATUS
approved