OFFSET
2,3
LINKS
N. J. A. Sloane, Table of n, a(n) for n = 2..13496
PROG
(Python)
from itertools import count, islice
def A367625_gen(startvalue=0): # generator of terms >= startvalue
if startvalue <= 0:
yield 0
for n in count(max(startvalue, 1)):
s = bin(n)[2:]
c, l = 2, len(s)
for i in range(1, l+1):
c += int(s[l-i])<<1
if c <= i:
break
else:
yield n
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Nov 27 2023
STATUS
approved