OFFSET
0,3
LINKS
Robert Israel, Table of n, a(n) for n = 0..10000
FORMULA
I would very much like a g.f. for this sequence!
MAPLE
f:= proc(n) option remember; local i, j;
i:= ilog2(n);
j:= n-2^i;
if j = 2^i-1 then procname(j)+2*procname(j+1)+1
else procname(j) + 2*procname(j+1)
fi
end proc:
f(0):= 0: f(1):= 1: f(2):= 2:
map(f, [$0..100]); # Robert Israel, May 18 2020
CROSSREFS
KEYWORD
nonn,look
AUTHOR
N. J. A. Sloane, Jul 17 2009
EXTENSIONS
Typo in name corrected by Robert Israel, May 18 2020
STATUS
approved