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”).

A151849
a(0)=1; a(1)=1; a(2)=2; for n>=3 if n=2^i + j with 0<=j<2^i then a(n)=a(j) + a(j + 1) except we add 1 if j=2^i-1.
1
1, 1, 2, 4, 2, 3, 6, 7, 2, 3, 6, 6, 5, 9, 13, 10, 2, 3, 6, 6, 5, 9, 13, 9, 5, 9, 12, 11, 14, 22, 23, 13, 2, 3, 6, 6, 5, 9, 13, 9, 5, 9, 12, 11, 14, 22, 23, 12, 5, 9, 12, 11, 14, 22, 22, 14, 14, 21, 23, 25, 36, 45, 36, 16, 2, 3, 6, 6, 5, 9, 13, 9, 5, 9, 12, 11, 14, 22, 23, 12, 5, 9, 12, 11, 14
OFFSET
0,3
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