WorksMathematics
On a Notion of Density Related to Restricted Diophantine Approximation
Abstract
We introduce notion of density for a subset of the natural numbers called the Diophantine density. First, we demonstrate that the Diophantine density is an abstract density in the sense of Di Nasso and Jin. Then we establish upper and lower bounds for the Diophantine density of a set and its complement respectively. We also exhibit a construction which allows us to find a set whose density can be any value between zero and one. Finally, we prove a restricted-denominator analog of Dirichlet's approximation theorem for sets of non-zero Diophantine density.
Introduction
One of the foundational results in theory Diophantine approximation is Dirichlet’s approximation theorem.
Theorem 1 (Dirichlet). For any real numbers and ,
It is natural to wonder how the quality of approximation in Dirichlet’s theorem would be affected if the approximating integers are restricted to some subset of the natural numbers. This question has received considerable attention over the years, with much of the research focused on restrictions to arithmetically significant subsets of the natural numbers. The arithmetic structure of these sets allows for techniques from analytic number theory to be applied. The following list gives a sample of the variety of sets which have been considered in the past.
Prime numbers (Matomäki [8]).
Square-free numbers (Harman [5]).
Perfect squares (Zaharescu [11]).
Numbers formed by the digits 0 and 1 in a given base (Iyer [6]).
Values of a quadratic form (Baier and Rahaman [2]).
To give a specific example, we present Zaharescu’s main theorem from [11].
Theorem 2 (Zaharescu). For any real number , positive integer , and ,
Results such as Zaharescu’s theorem suggest studying subsets of the natural numbers according to the quality of Diophantine approximation they permit. In this paper, we take up this task by introducing the Diophantine density of a set. We show that dense sets in the Diophantine sense, also produce good Diophantine approximations. Moreover, we hope to demonstrate that aside from its connection to rational approximation, the Diophantine density possesses a number of other interesting properties.
In the next section, we formally define Diophantine density and show that it possesses the properties of an abstract density. § 3 provides two theorems giving lower and upper bounds for the Diophantine density of a set. In § 4, we construct a set with Diophantine density equal to any prescribed value in . § 5 establishes a connection back to Diophantine approximation by proving an analogue of Dirichlet’s theorem in which the denominators of the approximating rationals are restricted to a set of positive Diophantine density.
§ 6 concerns sets arising from Piatetski-Shapiro sequences. Using the results of the preceding sections together with Zaharescu’s theorem, we establish explicit lower and upper bounds for the Diophantine density of the set of perfect squares. Finally, § 7 presents several open problems.
Diophantine density
The following definition gives us our principal object of interest for the remainder of paper.
Definition 1. The Diophantine density of a non-empty set is defined as the supremum of all real numbers , such that there exists a and a , for which
for every coprime pair with . For the empty set, we define .
The purpose of this section is to establish some of the basic properties of the Diophantine density and in particular, show that it possesses the features that one would expect a density to possess. The question of what properties a “generic” or “abstract” density should satisfy has been raised by a number of people over the years. The definition given below was proposed by Di Nasso and Jin [3].
Definition 2. An abstract density on is a function that satisfies the following properties:
(i) .
(ii) for every finite .
(iii) Monotonicity: If then .
Theorem 3. The Diophantine density is an abstract density.
Our proof of Theorem 3 will be spread out over the upcoming four propositions. Each of which will establish one of Properties (i) - (iii) as well as the fact that the codomain of the Diophantine density is . We begin by showing that the Diophantine density satisfies Property (i).
Proposition 1. The Diophantine density of is given by .
Proof. For every coprime pair we can set , since is invertible modulo . In doing so, we see that and
This shows immediately that .
To see that this is the largest possible value for , let us assume that some larger value is achievable. Then there would be a and such that . But this implies that for all sufficiently large , which is impossible since . Therefore, we see that .
Proposition 2. If is finite, then .
Proof. Aiming for a contradiction, let us assume that and consider an infinite sequence of reduced rationals , such that as . By definition, for sufficiently large , there are real numbers and both greater than zero, such that
Since is finite and the sequence of rationals is infinite, by Dirichlet’s pigeonhole principle, there must be a single that satisfies the above inequality for infinitely many .
Let us denote the subsequence of ’s for which this is true by . By taking the limit as , we find that
But this implies that is rational, which is a contradiction. As a result, we conclude that .
Proposition 3. If , then .
Proof. Since we see that for sufficiently large ,
Thus, any admissible for the set is also admissible for the set . This shows that .
Proposition 4. Let . The Diophantine density is bounded by .
Proof. First, we note that for all . Thus, for any pair we have
As a result, .
On the other hand, by Propositions 1 and 3 we know that for any subset , . Combining the lower and upper bounds completes the proof.
With that we have shown that the Diophantine density is an abstract density and our proof of Theorem 3 is complete.
In their paper on abstract densities, Di Nasso and Jin [3] present four additional properties which an abstract density may possess.
Definition 2a. An abstract density may possess the following properties:
(iv) Subadditivity: .
(v) Translation invariance: for every and .
(vi) Richness: For every , there is an such that .
(vii) Atomless-ness: For every such that there is a such that .
Here the right and left translates of are defined by
At the end of this section we show that the Diophantine density is not translation invariant, and we establish richness in Section 4. Out of the four properties listed above this leaves subadditivity and atomless-ness, which we were not able to establish. But we present some evidence that it is not subadditive in Section 7.
In another study of generic densities, Leonetti and Tringali [7] define an upper density to be a function which satisfies Properties (i), (iii), (iv) and (v), plus an additional property called -homogeneity.
Definition 2b. An abstract density may satisfy the following property:
(viii) -homogeneity: for all and .
Our next result shows that the Diophantine density is not -homogeneous, and therefore cannot be an upper density in the sense of Leonetti and Tringali.
Proposition 5. For all integers , the set of multiples of has full Diophantine density. That is, .
Proof. Let be coprime with , and let
Next, let in Dirichlet’s approximation theorem, so that we have
Setting , we see that by construction, and
Moreover,
which implies that
Putting this all together we see that
This shows that , and in light of the upper bound derived in the Proposition 4, we have . □
Proposition 5 provides an example of an interesting phenomenon. Namely, the Diophantine density admits sets that possess co-infinite subsets of the same density. We revisit this example in Section 7, where a related open question is posed.
In the final proposition of this section we show that the Diophantine density is not translation invariant.
Proposition 6. The Diophantine density is not translation invariant.
Proof. Let be a positive integer and consider the set . By Proposition 5 we know that . We will demonstrate that a right translation by results in .
To see this, define and , so that
For any , is of the form , and therefore
Thus, for any such the distance to the nearest integer is given by
As there are infinitely many such rationals , this rules out any positive exponent, thereby establishing that .
As far as the author knows, the concept of Diophantine density has not been directly studied before, but related concepts have appeared in the literature. One related idea that has appeared in the literature is that of a Heilbronn set. A set is said to be Heilbronn if, for every real number and , there exists a such that .
Recently, Iyer [6] defined two characterizations of sets that are more closely related to our notion of Diophantine density. Firstly, a set is said to be an -set, if there exists a function decreasing to , such that for every and , one has
Iyer also defines a set to be a strong approximating set, if for all and one has
where is a constant depending only on .
If is a strong approximating set, then by taking and in the definition, we see that
for all and rational . This implies that any strong approximating set has a Diophantine density of .
Bounding the Diophantine density of a set
The goal of this section to prove two theorems which provide an upper and lower bound for the Diophantine density of a given set and its complement, respectively. We begin by stating the following definition for the counting function of a subset of the natural numbers.
Definition 5. Let and for let
denote the number of elements of less than .
Remark 1. We would like to point out that our convention for the counting function differs from the usual definition, in which is defined as the number of elements less than or equal to .
The first goal of this section is to establish a lower bound for the density of a complement . To accomplish this, we need the following lemma.
Lemma 1. Let . Then for any coprime pair ,
Proof. Fix a coprime . Our goal is to bound the smallest element left in the multiset
after removing those elements for which .
We begin by noting that since permutes the nonzero residue classes modulo and
we see that
as multisets. Moreover, for we have
and thus
where each distinct element occurs twice, except for the last which occurs only once for even .
Now consider what happens when we remove the elements of which correspond to the elements of less than . Since each distinct element of occurs at least once, the smallest remaining element may be roughly bounded by
With that our proof is complete. □
Theorem 4. Let be non-empty. Then is bounded below by
Proof. Let us begin by defining
Since is non-empty we have . If , then the lower bound follows by Proposition 4. Therefore, let us assume that . By Lemma 1, we see that for any coprime pair , and ,
Consequently, for any . This implies that
Our goal now is to show that
To achieve this, let denote the limit supremum in the previous line. Then we see that for large enough ,
for every . Thus, and consequently, . Since this holds for every we obtain .
For the reverse inequality, suppose that . Then there exists a constant such that, for all sufficiently large ,
Taking the limit supremum gives . Since this holds for every for which , we obtain .
Combining the upper and lower bounds for , we obtain , which completes the proof. □
Theorem 5. Let be non-empty. Then is bounded above by
Proof. The first step in our proof is to show that for every there exists a such that for all sufficiently large. To accomplish this task, we will essentially examine the set of numerator classes modulo , which are covered by the elements of less than .
For fixed and , define the set of numerator classes modulo by
then the definition of Diophantine density gives
Now let us suppose that is prime. Because and consequently , the map is a bijection. Therefore, the number of elements in is equal to the nonzero residues modulo which satisfy . In other words,
This fact allows us to easily bound the order of . To this end, observe that if is such that , then by definition
This implies that either
and thus, must satisfy
So for fixed there are at most such numerator classes that can cover. That is, .
By taking the union of all such that , we find that
Consolidating constants, this implies that for some ,
for all sufficiently large prime .
Next, by Bertrand’s postulate, for every sufficiently large integer , there exists a prime such that . Since the counting function is non-decreasing and ,
Thus, after adjusting the constant, the bound holds for all sufficiently large integers , not only primes.
Finally, by taking logarithms, we obtain
Therefore,
Since this holds for every we are able to say that
as we had sought to show. □
Remark 2. By combining Theorems 4 and 5 we obtain the bounds
where we have set . Unfortunately, this statement cannot produce a non-trivial value for both the lower and upper bound simultaneously. That is, a lower bound that is greater than 0 and an upper bound that is less than 1.
To see this, we first note that . Then suppose that we have a non-trivial lower bound, so that
It must be the case that as , and therefore that . Plugging this in to the upper bound we see that
Similarly, when the upper bound is less than 1, the lower bound is seen to be 0 by a similar argument.
Remark 3. The quantities
are often called the lower and upper logarithmic densities of the set (see for instance [4]). Thus, the bound for given in the previous remark may be written succinctly as
We point out in passing that upper logarithmic density is connected to the theory of Dirichlet series via the identity
Here the quantity on the right is referred to as the abscissa of convergence. A proof of a more general statement can be found in Apostol’s book [1].
Constructing a set with prescribed density
So far we have seen examples of sets which have a Diophantine density of 0 as well as sets which have a Diophantine density of 1. In this section, we present a construction that shows that for any , there exists a set whose Diophantine density is . In other words, using the language of Section 2, we show that the Diophantine density is rich.
Theorem 6. For any , there exists a set such that .
Proof. Define the integer sequences and as
Then define the set
and the union
Next, let us pick an arbitrary integer and positive integer , such that . By applying Dirichlet’s approximation theorem to the rational number we find that there exists some , such that
Thus, by setting we find that , and
since . We have therefore shown that for every coprime pair , the bound
holds. This demonstrates that the Diophantine density of is at least .
To establish that the Diophantine density of is not greater than , we will start by showing that . Let , so that . Since overlaps can only reduce the size of the union we see that
Moreover, we point out that
Our plan is to split the sum into two parts, one over indices less than or equal to and one over those greater than . For we simply use the fact that and to establish the bound
For those indices greater than we take advantage of the spacing between elements of . Since , we have
Then because for any , we see that
Thus, we obtain
Using the fact that , we find that
Since , we find that , which shows that
Combining the two halves of the sum gives the expected bound, namely
Finally, with denoting the implied constant in the bound above, an application of Theorem 5 shows that
By combining this with the lower bound derived above we obtain , completing the proof. □
Example 1. As an example, let . Then and
.
Diophantine density and restricted approximation
In this section we turn to the original motivation for this paper, namely, restricted Diophantine approximation. The next theorem gives us an idea of how well an arbitrary irrational number can be approximated by a subset of .
Theorem 7. Let and suppose that . For any irrational number and real number satisfying , there are infinitely many pairs such that
Proof. Let be the -th convergent of . By a standard result from the theory of continued fractions (see e.g. [10]) we know that
Next, fix a real number , such that . Since , there is a and constant such that for large enough , we have
where denotes the nearest integer to .
Thus, by the triangle inequality and the fact that , we find that
By Proposition 4, we know that , so that . Thus, we obtain the bound
All that we have left to show is that as . If this were not the case, and there were only finitely many distinct denominators, then by the pigeonhole principle there must be a single for which , for infinitely many . Denote the subsequence of ’s for which this is true by . Since , we find that
This is clearly a contradiction, as is irrational.
Therefore, we conclude that there are infinitely many distinct , such that
Finally, since , we have for all sufficiently large . Consequently, we may write
With that our proof is complete. □
Definition 6
Definition 6. The restricted irrationality exponent , of an irrational number with respect to a set , is defined as the supremum of all real numbers such that the inequality
possesses infinitely many solutions . When , we write for the ordinary irrationality exponent of .
Just as Dirichlet’s theorem guarantees that for any irrational , our Theorem 7 gives us the following lower bound for the restricted irrationality exponent.
Corollary 1. Let , and suppose that . For any irrational number , the restricted irrationality exponent satisfies
Proof. Theorem 7 tells us that for any there are infinitely many pairs such that
This shows that for every , and thus , as expected. □
Approximations involving Piatetski-Shapiro sequences
In this section, we investigate approximations whose denominators either are elements or avoid elements of Piatetski-Shapiro sequences, which are sequences of the form where . Often, is defined to be non-integral, but here we do not impose such a restriction. These sequences are named after Piatetski-Shapiro [9], who showed that for , there are infinitely many primes of the form .
To prepare for the remainder of this section, let us define the set
consisting of the elements of a given Piatetski-Shapiro sequence. The following lemma provides an upper and lower bound for the counting function of .
Lemma 2. Let . The counting function for a Piatetski-Shapiro set satisfies the bound
Proof. Our goal is to show that
which then implies the desired inequality, . To accomplish this we will count the number of positive integers such that .
The above inequality implies that , and equivalently . Note that if , then there are positive integers less than . On the other hand, if , then there are such positive integers. With the value of the counting function established, our proof is now complete. □
Proposition 7. The Diophantine density of the Piatetski-Shapiro set , is bounded above by .
Proof. Using Lemma 2 along with Theorem 5 easily establishes that
:::
Proposition 8. The Diophantine density of , the set of perfect squares, possesses the bounds
Proof. We will begin by establishing the lower bound. By setting and
in Zaharescu’s theorem, we find that
Thus, for every coprime pair ,
for any . Consequently, by taking the supremum over all such we find that .
For the upper bound, the previous proposition gives us , and our proof is complete.
Remark 4. It is an open question as to whether or not the value in Zaharescu’s Theorem 2 can be replaced by 1. If this turns out to be true, then we would obtain the exact value .
Moreover, it is natural to wonder if, more generally, the bound given by Proposition 7 is sharp. That is, if for all .
Next, let us take a look at Diophantine approximation using the complement of a Piatetski-Shapiro set.
Proposition 9. Let be an irrational number and let be a real number. For any , there are infinitely many pairs , such that
Proof. From Lemma 2 we know that . Then for some constant , we have
We can then use Theorem 4 to produce the bound
Since we have required that so that , Theorem 7 tells us that for any satisfying , we have infinitely many pairs , such that
As this is equivalent to the stated result, our proof is complete.
Example 2. As an example, setting in Proposition 9 shows that for any irrational number and any , there are infinitely many pairs where is not a perfect square, such that
Open questions
There are a number of fundamental questions involving Diophantine density that have yet to be answered and that could provide promising avenues for further research. We present a few such problems below.
Question 1. Is the Diophantine density atomless?
Question 2. It is immediate that . Are there sets and such that ?
Let us sketch one possible approach to this problem. The idea is to construct two sets, such that each set is missing a subset of which other set possesses. So that separately, the Diophantine density of each set is limited by the missing subsets, but together, their union produces all of .
More specifically, let and define the sequence of sets by
where is an associated sequence of rational numbers. Now suppose we can construct the sequence recursively, so that the pairwise intersection of the even-indexed and odd-indexed sets of the sequence is empty. That is,
Then if we define
by construction we have , and . Since we have required that , this construction gives a specific example of sets satisfying
Moreover, this would show that the Diophantine density is not subadditive. This is because for sufficiently small , , and therefore
If Question 1 can be answered in the affirmative, then we pose a related follow-up question. To state it, we will need the following definition.
Definition 7. An infinite set is called minimally dense with respect to the Diophantine density, if for every partition
such that , we have
In other words, a minimally dense set cannot be partitioned into two infinite subsets, where either subset is as dense as the whole. This behavior is in contrast to the behavior of , for instance, which is not minimally dense. By Proposition 5 we know that
gives a partition which violates the conditions of minimal density, since .
Question 3. Do minimally dense sets exist?
Question 4. How dependent is the Diophantine density of on the growth of its counting function? By Theorem 5 we know that if , then . Can take a value that is strictly less than ?
Acknowledgments
The author would like to thank Jeff Ylvisaker and Jerry Federspiel for taking an interest in this work as well as for their questions and comments which helped shape the content of this paper.
Declaration of AI use. This work has benefited significantly from the assistance of ChatGPT 5.5, 5.6 and 6. Notably, ChatGPT was instrumental in developing the proofs of Theorems 4, 5 and 6.
Madison, Wisconsin, USA
Email address: [email protected]
References
- [1]Tom M Apostol. Modular functions and Dirichlet series in number theory. Springer Science & Business Media, 2012.
- [2]Stephan Baier and Habibur Rahaman. Diophantine approximation with sums of two squares. arXiv preprint arXiv:2504.09650, 2025.arxiv.org/abs/2504.09650
- [3]Mauro Di Nasso and Renling Jin. Abstract densities and ideals of sets. Acta Arithmetica, 185:301–313, 2018.arxiv.org/abs/1709.03097
- [4]Georges Grekos, Jana Tomanová, and Martin Sleziak. Gaps and the exponent of convergence of an integer sequence. arXiv preprint arXiv:1201.2158, 2012.arxiv.org/abs/1201.2158
- [5]Glyn Harman. Diophantine approximation with square-free integers. Mathematical Proceedings of the Cambridge Philosophical Society, 95(3):381–388, 1984.DOI
- [6]Siddharth Iyer. Rational approximation with digit-restricted denominators. The Quarterly Journal of Mathematics, 76(2):381–394, 2025.DOI
- [7]Paolo Leonetti and Salvatore Tringali. On the notions of upper and lower density. Proceedings of the Edinburgh Mathematical Society, 63(1):139–167, 2020.DOI
- [8]Kaisa Matomäki. The distribution of α(p) modulo one. Math. Proc. Camb. Philos. Soc., 147(2):267–283, 2009.DOI
- [9]Ilya I. Piatetski-Shapiro. On the distribution of the prime numbers in sequences of the form [f(n)]. Mat. Sb., Nov. Ser., 33:559–566, 1953.
- [10]Wolfgang M Schmidt. Diophantine approximation. Springer, 1980.
- [11]Alexandru Zaharescu. Small values of n²α(mod 1). Invent. Math., 121:379–388, 1995.