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!)
A367626 First differences of A036991. 4
1, 2, 2, 2, 4, 2, 2, 4, 2, 2, 4, 2, 2, 8, 4, 2, 2, 4, 2, 2, 4, 2, 2, 8, 4, 2, 2, 4, 2, 2, 4, 2, 2, 8, 4, 2, 2, 4, 2, 2, 4, 2, 2, 16, 8, 4, 2, 2, 8, 4, 2, 2, 4, 2, 2, 4, 2, 2, 8, 4, 2, 2, 4, 2, 2, 4, 2, 2, 8, 4, 2, 2, 4, 2, 2, 4, 2, 2, 16, 8, 4, 2, 2, 8, 4, 2, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Entries are powers of 2 (see A036991 and A367627).
LINKS
PROG
(Python)
from itertools import count, islice
def A367626_gen(): # generator of terms
a = 0
yield 1
for n in count(1):
s = bin(n)[2:]
c, l = 2, len(s)
for i in range(1, l+1):
if (c:=c+(2 if s[l-i]=='1' else 0)) <= i:
break
else:
yield n-a<<1
a = n
A367626_list = list(islice(A367626_gen(), 30)) # Chai Wah Wu, Nov 28 2023
CROSSREFS
Sequence in context: A102445 A102430 A160691 * A049716 A361289 A188903
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Nov 25 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 May 6 13:11 EDT 2024. Contains 372293 sequences. (Running on oeis4.)