OFFSET
1,1
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..10000
PROG
(Python)
def ok(n):
b = bin(n)[2:]
return ("000" in b or "111" in b) and not ("0000" in b or "1111" in b)
print(list(filter(ok, range(175)))) # Michael S. Branicky, Jul 08 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
EXTENSIONS
a(55) and beyond from Michael S. Branicky, Jul 08 2021
STATUS
approved