How many more odd divisors are there than even divisors? 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


We have the following facts:

*

*$f(k) = \tau(k)- [2\mid k]\ \tau(k/2)$


*$g(k) = [2\mid k]\ \tau(k/2)$


*$\sum\limits_{k\le x} \tau(k) = x \log x + (2\gamma +1) x + O(\sqrt{x})$
($\tau(k)$ is the numbers of positive divisors of $k$ and I'm using the Iverson bracket)
Then
\begin{align}
F(x)-G(x) & = \sum_{k\le x} (f(k)- g(k)) = \sum_{k\le x}(\tau(k) - 2\ [2\mid k]\ \tau(k/2))\\
&= \sum_{k\le x}\tau(k) - 2 \sum_{k\le x}[2\mid k]\ \tau(k/2)\\
&= \sum_{k\le x}\tau(k) - 2 \sum_{k\le x/2}\tau(k)\\
&= x \log x+(2\gamma +1)x+O(\sqrt{x}) - 2 \left(\tfrac{x}{2} \log \tfrac{x}{2}+(2\gamma +1)\tfrac{x}{2}+O(\sqrt{\tfrac{x}{2}})\right)\\
&= x \log 2 + O(\sqrt{x})
\end{align}
So indeed $$\lim_{x\to \infty}\frac{F(x)-G(x)}{x} = \log 2$$
