2
$\begingroup$

It is well known, that given an integer $n$ whose prime factorization is $$ n = p_1^{a_1} \times p_2^{a_2} \times \ldots \times p_n^{a_n} $$ the number of its positive divisors is given by $$ d(n) = (a_1+1) \times (a_2+1) \times \ldots \times (a_k+1) $$ Now the question is the following: How many of the above divisors of $n$ lie between given bounds $a$ and $b$? Is there a systematic method for answering this question ?

In other words: given two positive integers $a<b$, and a positive integer $n$, is there a well defined function $d(n,a,b)$ having as its values the number of positive divisors of $n$, lying between $a$ and $b$ ?

$\endgroup$
8
  • 2
    $\begingroup$ of course it is well defined. $\endgroup$
    – Asinomás
    Commented Jan 26, 2017 at 2:18
  • $\begingroup$ does checking every divisor count? $\endgroup$
    – Asinomás
    Commented Jan 26, 2017 at 2:19
  • $\begingroup$ well, that counts for an algorithm however my question is what would that function be. $\endgroup$
    – KonKan
    Commented Jan 26, 2017 at 2:20
  • 1
    $\begingroup$ You might as well ask for a function $d'(n,b)$ that counts divisors below $b$. Then $d(n,a,b)=d'(n,b)-d'(n,a)$ $\endgroup$ Commented Jan 26, 2017 at 3:14
  • 1
    $\begingroup$ @KonKan Sure thing. Fix any $a<b$. There are only finitely many integers in the range $[a,b]$. Let $L$ be the lcm of the set $\{a,a+1,\ldots,b\}$. Then any integer $c$ with $a\le c \le b$ by definition divides $L$. In particular, $c \mid x \iff c \mid x+L$. It follows that $d(n,a,b) = d(n+L,a,b)$, so $d(\cdot,a,b)$ is periodic with period at most $L$. $\endgroup$
    – Erick Wong
    Commented Feb 2, 2017 at 7:27

2 Answers 2

2
$\begingroup$

Here is an approximation that works well when $n$ is enormous, has few factors, and $b$ is large but small compared with $n$. We will look for a function $d'(n,b)$ that counts divisors of $n$ that are below $b.$ As an example, we will consider the case where $n=2^k3^m$ and assume that $2^k, 3^m \gt b.$ At each of the lattice points $(x,y)$ in the first quadrant we can associate the log of one potential factor, so at $(x,y)$ we associate $x \log 2 + y \log 3$. The factors less than $b$ are the lattice points below the line $x \log 2 + y \log 3 =\log b$. The area of the triangle is $\frac {(\log b)^2}{2 \log 2 \log 3}$ so we would expect that many factors less than $b$. The extension to more factors is clear. If there were prime factors $2,3,5$ the number of factors less than $b$ would be $\frac {(\log b)^3}{3! \log 2 \log 3 \log 5}$ because we would have a tetrahedron in a $3D$ lattice.

The limitations are easy to see. If there are not enough factors of $2$ or $3$ to exceed $b$ our triangular region can become a rectangle with the corner cut off. The line or plane dividing the factors below $b$ from those above will pass between lattice points, so there is uncertainty at the boundary. As the boundary is one dimension lower than the bulk of the lattice points this error reduces as $n$ gets large. A feel for the error comes from the fact that for $b=10^6$ the area formula gives $125$ factors while there really are $142$. For $b=10^9$ the area formula gives $282$ compared to $306$.

$\endgroup$
2
  • $\begingroup$ thank you for providing this. Although it does not provide a definite answer to the question, it is certainly a very interesting approximation and nicely presented. I think that the initial problem virtually "breaks" into a system of simultaneous diophantine-like inequalities and what you are doing here is a kind of graphical approximation to the solution of such a problem. +1. Do you know of some further references on similar methods, for this or related problems? $\endgroup$
    – KonKan
    Commented Feb 1, 2017 at 20:24
  • $\begingroup$ On the other hand, I have discussed this problem elsewhere but I have not received significant feedback (not even close). So, i think it is fair -after a few days have passed- to accept your answer. $\endgroup$
    – KonKan
    Commented Feb 1, 2017 at 23:50
2
$\begingroup$

Several mathematicians have done research on this very topic. A good place to start might be this paper of Kevin Ford: "The distribution of integers with divisors in a given interval."

$\endgroup$
1
  • $\begingroup$ thank you for the reference. However, after taking a quick look through it, i think that it discusses a similar but different problem. It is interesting in any case. $\endgroup$
    – KonKan
    Commented Feb 1, 2017 at 20:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .