OFFSET
1,1
COMMENTS
Corrected by Zak Seidov, Apr 15 2007
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..10000
PROG
(Python)
from itertools import count, islice
def cond(n):
d = list(map(int, str(n)))
return any(d[i+1] == d[i]+1 for i in range(len(d)-1))
def agen():
yield from filter(cond, count(1))
print(list(islice(agen(), 54))) # Michael S. Branicky, Dec 23 2021
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Eric Angelini, Oct 21 2004
EXTENSIONS
a(51) and beyond from Michael S. Branicky, Dec 23 2021
STATUS
approved