OFFSET
0,3
COMMENTS
After 11 we can see 1,2 -> 12, 1,3 -> 13, etc., but not 20.
LINKS
Michael S. Branicky, Table of n, a(n) for n = 0..10000
PROG
(Python)
from itertools import islice
def incats(s, L):
if s == "": return True
return any(s.startswith(w) and incats(s[len(w):], L[i+1:]) for i, w in enumerate(L))
def agen(): # generator of terms
L, an, s = ["0"], 1, "1"
yield from [0]
while True:
yield an
L.append(s)
while incats((s:=str(an)), L):
an += 1
print(list(islice(agen(), 70))) # Michael S. Branicky, Feb 01 2024
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Amarnath Murthy, May 29 2003
EXTENSIONS
More terms from Patrick De Geest, Jun 03 2003
STATUS
approved