login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A261466 Records in A261461. 4
1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 13, 15, 16, 17, 18, 19, 20, 21, 22, 23, 25, 26, 27, 29, 31, 32, 33, 34, 35 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
a(n) = A261461(A261467(n)).
LINKS
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
Sequence in context: A368087 A191849 A055019 * A172152 A218444 A325118
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

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 02:04 EDT 2024. Contains 371782 sequences. (Running on oeis4.)