OFFSET
0,3
FORMULA
a(2n)=a(n)+1; a(2n+1)=min{a(n)+2, a(n+1)+2}; a(0)=0, a(1)=1.
EXAMPLE
a(23)=7 since 23=(0+1+1+1)*2*2*2-1.
CROSSREFS
KEYWORD
nonn
AUTHOR
Henry Bottomley, Jun 06 2001
STATUS
approved