OFFSET
1,3
LINKS
Rémy Sigrist, C program
PROG
(Haskell)
a261467 n = a261467_list !! (n-1)
-- where a261467_list is defined in A261466.
(C) See Links section.
(Python)
from itertools import count, islice
def f(n):
b, k = bin(n)[2:], 1
return next(k for k in count(1) if bin(k)[2:] not in b)
def agen(record=-1):
yield from (((record:=f(k)), k)[1] for k in count(0) if f(k) > record)
print(list(islice(agen(), 18))) # Michael S. Branicky, Feb 26 2023
CROSSREFS
KEYWORD
nonn,more,base
AUTHOR
Reinhard Zumkeller, Aug 30 2015
EXTENSIONS
Leading zero and more terms from Rémy Sigrist, Mar 10 2018
a(26)-a(29) from Rémy Sigrist, Feb 26 2023
STATUS
approved