This paper studies parity distribution of divisors of all integers up to \(n\), by dealing with a variant of the alternating harmonic series, namely
where \(\left[x\right]\) is the floor function, In particular, it will be shown that this series converges to \(\log 2\), by comparing it with the standard alternating harmonic series. This implies that of all integers up to \(n\), both the numbers of odd and even divisors are of \(O(n \log n)\), with odd ones slightly more than even ones by \(2n \log 2\). This estimation is accurate to \(n^{2/3}\). In a more general form, define \(d_{m,k}(n)\) to be the number of divisors of \(n\) that is congruent to \(k\) modulo \(m\), and \(D_{m,k}(n) = \sum_{\nu=1}^n d_{m,k}(\nu)\), it is shown that \(D_{m,k}(n)\) are asymptotically equivalent, with \(D_{m,k}(n)\) slightly larger when \(0 \le k < m\) smaller.
Sum of the Series
Consider \(n\) times the partial sum
We may divide the sum into two parts,
where \(m = n^{2/3}\). The estimation of the latter term is based on the observation that \(\left[\frac{n}{\nu}\right]\) can take only \(\frac{n}{m} = n^{1/3}\) values in the range \(m \le \nu \le n\).
For a given integer \(1 \le l \le n^{1/3}\), \(\left[\frac{n}{\nu}\right] = l\) for \(\frac{n}{l+1} < \nu \le \frac{n}{l}\). Thanks to the alternating nature of the series, most summands in the sum of \((-1)^{\nu-1} \left[\frac{n}{\nu}\right]\) for \(\nu\) in this range cancel, leaving at most one summand. Therefore the sum is \(\pm l\) or \(0\). In any case,
Now summing for \(l\) over \(1 \le l \le n^{1/3}\) (this covers \(m \le \nu \le n\)) we obtain
as \(n \to \infty\).
The estimation of the first term is done by comparing it with the standard alternating harmonic series. As there are no more than \(n^{2/3}\) summands, the error will be small. \(0 \le \frac{n}{\nu} - \left[\frac{n}{\nu}\right] < 1\), hence
Let \(n \to \infty\), and note the fact that
the inequality above leads to
as \(n \to \infty\).
Putting and together, we obtain the desired result
as \(n \to \infty\).
Implications in Number Theory
The relation between the series and number theory begins with the following observation:
Now let \(d(n)\) denote the number of divisors of \(n\), and \(d_0(n)\), \(d_1(n)\) denote the number of even and odd divisors, respectively, of \(n\). Then,
Therefore, \(L(n) - L(n-1)\) is the difference between the number of odd divisors and even divisors of \(n\). Let \(D_i(n) = \sum_{\nu=1}^n d_i(\nu)\), \(i=1\), \(2\), we have
where \(L(0) = d_0(0) = d_1(0) = 0\) for convenience. On the other hand, \(D_1(n) + D_0(n) = D(n)\) is known to have the expansion:
Putting these together we obtain an interesting result, namely
This shows that, in fact,
despite the irregularities in \(d_1(n)\), \(d_0(n)\), e.g. for odd \(n\), \(d_1(n) = d(n)\) while \(d_0(n) = 0\); but for even \(n = 2^r \cdot m\), \(m\) odd, \(d_1(n) = d(m)\) and \(d_0 = r \cdot d(m)\). Actually, these fluctuations eliminate accurately that \(D_0\) and \(D_1\) are asymptoticly equivalent.
Generalizations
This result describes the distribution of the parity of divisors. Namely, the total number of odd and even divisors of all integers up to \(n\) differs only by a quantity of lower order, \(2n\log2\). Also note that the convergence alone (not regarding what limit it converges to) implies the asymptotic equivalence between \(D_0\) and \(D_1\), and the key in the above argument is the cancellation process demonstrated in . Thus some generalizations are possible.
Let \(d_{m,k}(n)\) denote the number of divisors of \(n\) that is congruent to \(k\) modulo \(m\), i.e., \(\#\{d \mid n : d \equiv k \pmod m\}\), and \(D_{m,k}\) the respective sum. It is desirable to show that for given \(m\) and all \(k_1\), \(k_2\), \(D_{m,k_1}(n) \sim D_{m,k_2}(n)\). This follows from the argument presented above almost unaltered. Actually, let
we still have
So what remains is to show that \(\sum_{\nu=1}^\infty {\frac{s(\nu)}{\nu}}\) converges, which follows from Leibniz’s test. The test also shows that the sum is positive whenever \(k_1 < k_2\). Therefore, the fact that \(D_{2,1}\) is slightly more than \(D_{2,0}\) finds its analog for larger \(m\), that is, \(D_{m,k}(n)\) is larger by a quantity of \(O(n)\) when \(k\) is smaller.
Other generalizations can be suggested as well, such as adapting the argument above to study the series \(\frac{1}{n}\sum_{\nu=1}^\infty \left[\frac{n}{\nu}\right]\), which might lead to new insight into the relation between harmonic series and \(d_{m,k}\) functions.