STATUS
reviewed
approved
reviewed
approved
proposed
reviewed
editing
proposed
(PARI) isok(m) = if (!(m%2), my(b=binary(m)); (b[1]==1) && (b[2]==0)); \\ Michel Marcus, Jun 24 2021
proposed
editing
editing
proposed
(Python)
from itertools import count, product, takewhile
def agen(): # generator for sequence
yield 2
for digits in count(0):
for mid in product("01", repeat=digits):
yield int("10" + "".join(mid) + "0", 2)
def aupto(lim): return list(takewhile(lambda x: x <= lim, agen()))
print(aupto(180)) # Michael S. Branicky, Jun 24 2021
proposed
editing
editing
proposed
a(n) = 2*A004761(n+1). - Jon Maiga / Georg Fischer, Jun 24 2021
a(n) = A004761(n+1). - _Jon Maiga _ / Georg Fischer, Jun 24 2021
proposed
editing