login
A352246
Indices k where A352245(k) = 0.
2
2, 4, 7, 8, 9, 11, 12, 14, 15, 16, 18, 19, 22, 23, 24, 25, 27, 28, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 45, 46, 47, 48, 49, 51, 54, 55, 57, 58, 59, 60, 61, 62, 63, 66, 70, 73, 74, 75, 76, 77, 78, 79, 86, 87, 88, 89, 90, 91, 96, 99, 101, 103, 107, 117, 118, 123, 126, 127, 140, 147, 151
OFFSET
0,1
COMMENTS
See A352245 for further details and examples.
PROG
(Python)
from itertools import count, islice
def agen():
b = "1"
for k in count(1):
bk = bin(k)[2:]
idx = b.find(bk) + 1
if idx == 0: yield k
b += bin(idx)[2:]
print(list(islice(agen(), 73))) # Michael S. Branicky, Mar 18 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Scott R. Shannon, Mar 09 2022
STATUS
approved