login

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 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A151855
a(0)=1; a(1)=0; a(2)=1; for n>=3 if n=2^i + j with 0<=j<2^i then a(n)=a(j) + 2*a(j + 1) except we add 1 if j=2^i-1.
1
1, 0, 1, 3, 1, 2, 7, 6, 1, 2, 7, 5, 5, 16, 19, 9, 1, 2, 7, 5, 5, 16, 19, 8, 5, 16, 17, 15, 37, 54, 37, 12, 1, 2, 7, 5, 5, 16, 19, 8, 5, 16, 17, 15, 37, 54, 37, 11, 5, 16, 17, 15, 37, 54, 35, 18, 37, 50, 47, 89, 145, 128, 61, 15, 1, 2, 7, 5, 5, 16, 19, 8, 5, 16, 17, 15, 37, 54, 37, 11, 5, 16, 17
OFFSET
0,4
FORMULA
I would very much like a g.f. for this sequence!
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Jul 17 2009
STATUS
approved