A261467 Where records occur in A261461.
0, 1, 2, 6, 12, 44, 92, 184, 1208, 1256, 4792, 9912, 19832, 39664, 563952, 576464, 4496112, 4499184, 17996528, 17997488, 143972080, 145057520, 145070832, 294967024, 589944560, 1179889136, 2359778272, 71079255008, 72019201952
Offset: 1
Links
- Rémy Sigrist, C program
Programs
-
C
See Links section.
-
Haskell
a261467 n = a261467_list !! (n-1) -- where a261467_list is defined in A261466.
-
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
Extensions
Leading zero and more terms from Rémy Sigrist, Mar 10 2018
a(26)-a(29) from Rémy Sigrist, Feb 26 2023
Comments