OFFSET
1
COMMENTS
Inspired by Jeremy Gardiner's sequence A253585.
PROG
(PARI) concat(vector(50, n, if(1<m=A001511(n), vector(m), 1)))
(Python 3.10+)
def A252488_gen(): # generator of terms
m = 0
for n in count(0):
yield from [0]*(-m-1+(m:=(n<<2)-n.bit_count()))
yield 1 # Chai Wah Wu, Jul 12 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
M. F. Hasler, Jan 13 2015
STATUS
approved