OFFSET
1,1
PROG
(Python)
def ok(n):
sn, snm1 = str(n), str(n-1)
return ("01" in sn or "10" in sn) and not ("01" in snm1 or "10" in snm1)
print(list(filter(ok, range(1, 2302)))) # Michael S. Branicky, Aug 23 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved