Let $f(k)$ be the number of odd divisors of $k$ and $g(k)$ be the number of even divisors. Define $F(n) = \sum_{k \le n} f(k)$ and $G(n) = \sum_{k \le n} g(k)$. Thus $F(n)$ and $G(n)$ are the total number of odd and even divisors of natural numbers up to $n$. Experimental data show that
$$ \lim_{n \to \infty}\frac{F(n) - G(n)}{n} = \log 2 $$
Question: Is the above limit true?
Motivation: For a different question I had written a program to find length of the period $l_p$ of $1/p$. It is known that $l_p|p-1$ so we only need to search among the divisors of $p_1$ to find the smallest divisor $d$ such that $10^d - 1$ is divisible by $p$. This computation is slow but I observed that overall the program runs much faster if we first scan through even divisors first and only if we do not find a $d$ then we search through odd. This is because about $2/3$ of the divisors of $p-1$ seems to be even. This led me to investigate the proportion of odd and even divisors among natural numbers.
Source code:
p = 1
step = target = 10^6
odd = even = 0
while True:
d = divisors(p)
l = len(d)
i = 0
while i < l:
e = d[i]
if e%2 == 1:
odd = odd + 1
else:
even = even + 1
i = i + 1
if even > odd:
print("Found", p, odd, even)
if p >= target:
t = odd + even
print(p, odd, even, odd/t.n(), even/t.n(), (odd - even)/p.n())
target = target + step
p = p + 1