OFFSET
1,2
COMMENTS
These are the positive integers that do not appear in A367338.
All terms > 98 are of the form c*10^i for i >= 2 and 2 <= c <= 9; see proof in links. - Michael S. Branicky, Nov 28 2023
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..110 (all terms < 10^9)
Eric Angelini, Michael S. Branicky, Giovanni Resta, N. J. A. Sloane, and David W. Wilson, The Comma Sequence: A Simple Sequence With Bizarre Properties, arXiv:2401.14346, Youtube
Michael S. Branicky, Comma-Predecessor Theorem
PROG
(Python)
from itertools import count, islice
def A367338(n):
nn = n + 10*(n%10)
return next((nn+y for y in range(1, 10) if str(nn+y)[0] == str(y)), -1)
def agen():
A367338_set = set()
for n in count(1):
if n not in A367338_set:
yield n
# A367338_set.discard(n-100) # uncomment if memory is an issue
print(list(islice(agen(), 86))) # Michael S. Branicky, Nov 28 2023
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Giovanni Resta, Nov 23 2023
STATUS
approved