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

 Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 59th year, we have over 358,000 sequences, and we’ve crossed 10,300 citations (which often say “discovered thanks to the OEIS”). Other ways to Give
 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A354141 Indices of terms in A352808 that are powers of 2. 2
 1, 2, 3, 5, 9, 22, 31, 61, 121, 247, 479, 951, 1862, 3802, 7431, 15180, 29723, 59766, 118893, 239999, 475573, 959341, 1902293, 3835229, 7609175, 15268473, 30436701, 61001391 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,2 COMMENTS Every power of 2 will eventually appear in A353730, so the sequence is infinite. LINKS Rémy Sigrist, C++ program PROG (Python) from itertools import count, islice def ispow2(k): return bin(k).count("1") == 1 def agen(): # generator of terms A352808lst = [0, 1]; A352808set = {0, 1} k, mink, p = 1, 2, 2 for n in count(2): if ispow2(k): yield n-1 ahalf, k = A352808lst[n//2], mink while k in A352808set or k&ahalf: k += 1 A352808lst.append(k); A352808set.add(k) while mink in A352808set: mink += 1 print(list(islice(agen(), 8))) # Michael S. Branicky, May 18 2022 (C++) See Links section. CROSSREFS Cf. A352808, A353734. Sequence in context: A101581 A349676 A287915 * A105180 A094206 A278119 Adjacent sequences: A354138 A354139 A354140 * A354142 A354143 A354144 KEYWORD nonn,more AUTHOR N. J. A. Sloane, May 18 2022 EXTENSIONS a(16)-a(22) from Michael S. Branicky, May 19 2022 a(23)-a(28) from Rémy Sigrist, May 21 2022 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.

Last modified December 2 07:06 EST 2022. Contains 358493 sequences. (Running on oeis4.)