OFFSET
0,4
MAPLE
A037863 := proc(n)
a := 0 ;
dgs := convert(n, base, 4);
for i from 1 to nops(dgs) do
if op(i, dgs)<=1 then
a := a+1 ;
else
a := a-1 ;
end if;
end do:
a ;
end proc: # R. J. Mathar, Oct 16 2015
CROSSREFS
KEYWORD
base,sign
AUTHOR
STATUS
approved