OFFSET
1,2
PROG
(Haskell)
a261466 n = a261466_list !! (n-1)
(a261466_list, a261467_list) = unzip $ (0, 1) : f 0 1 where
f i x | y > x = (y, i) : f (i + 1) y
| otherwise = f (i + 1) x
where y = a261461 i
(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)[0] 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
Initial terms corrected and more terms from Rémy Sigrist, Mar 10 2018
a(26)-a(29) from Rémy Sigrist, Feb 26 2023
STATUS
approved