OFFSET
1,3
COMMENTS
The asymptotic mean of the excess of the number of odious divisors over the number of evil divisors (A357761, see formula).
The convergence of the partial sums S(m) = -Sum_{k=1..2^m-1} A106400(k)/k is fast: e.g., S(28) is already correct to 100 decimal digits (see also Jon E. Schoenfield's comment in A351404).
FORMULA
EXAMPLE
1.19628326432525643722229163320081918101042674640159...
MATHEMATICA
sum = 0; m = 1; pow = 2; Do[sum -= (-1)^DigitCount[k, 2, 1]/k; If[k == pow - 1, Print[m, " ", N[sum, 120]]; m++; pow *= 2], {k, 1, 2^30}]
PROG
(PARI) default(realprecision, 150);
sm = 0.; m = 1; pow = 2; for(k = 1, 2^30, sm -= (-1)^hammingweight(k)/k; if(k == pow - 1, print(m, " ", sm); m++; pow *= 2))
CROSSREFS
KEYWORD
nonn,cons
AUTHOR
Amiram Eldar, Oct 12 2022
STATUS
approved