OFFSET
1,7
COMMENTS
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
f:= proc(n) convert(convert(n, base, 2), `+`)-numtheory:-bigomega(n) end proc:
map(f, [$1..100]); # Robert Israel, May 22 2024
MATHEMATICA
bix[n_]:=Join@@Position[Reverse[IntegerDigits[n, 2]], 1];
prix[n_]:=If[n==1, {}, Flatten[Cases[FactorInteger[n], {p_, k_}:>Table[PrimePi[p], {k}]]]];
Table[Length[bix[n]]-Length[prix[n]], {n, 100}]
CROSSREFS
KEYWORD
sign,base
AUTHOR
Gus Wiseman, May 07 2024
STATUS
approved