OFFSET
0,2
COMMENTS
Conjecture: this is a permutation of the nonnegative integers.
The one-digit integers appear in the following order: 1,9,2,3,7,4,6,5,8,0.
EXAMPLE
a(1) = 10 since 10 is the smallest even integer not yet in the sequence that shares the digit 1 with a(0) = 1; a(2) = 11 since 11 is the smallest odd integer not yet in the sequence that shares the digit 1 with a(1) = 10.
PROG
(Python)
cur = [1]
while len(cur) < 100:
....for x in range(100000):
........flag = False
........if x not in cur:#not currently used
............if x % 2 != cur[-1] % 2:#opposite parity
................j = str(x)
................k = str(cur[-1])
................for a in k:
....................if a in j:
........................cur.append(x)
........................flag = True
........................break
........if flag:
............break
print(cur)
# David Consiglio, Jr., Oct 04 2018
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Enrique Navarrete, Aug 31 2018
EXTENSIONS
Corrected and extended by David Consiglio, Jr., Oct 04 2018
STATUS
approved