Innumber theory,natural density, also referred to asasymptotic density orarithmetic density, is a measure of how "large" asubset of theset ofnatural numbers is. It relies chiefly on theprobability of encountering members of the desired subset when combing through theinterval[1,n] asn grows large.
For example, it may seem intuitively that there are morepositive integers thanperfect squares, because every perfect square is already positive and yet many other positive integers exist besides. However, the set of positive integers is not in fact larger than the set of perfect squares: both sets areinfinite andcountable and can therefore be put inone-to-one correspondence. Nevertheless if one goes through the natural numbers, the squares become increasingly scarce. The notion of natural density makes this intuition precise for many, but not all, subsets of the naturals (seeSchnirelmann density, which is similar to natural density but defined for all subsets of).
If an integer is randomly selected from the interval[1,n], then the probability that it belongs toA is the ratio of the number of elements ofA in[1,n] to the total number of elements in[1,n]. If this probability tends to somelimit asn tends to infinity, then this limit is referred to as the asymptotic density ofA. This notion can be understood as a kind of probability of choosing a number from the setA. Indeed, the asymptotic density (as well as some other types of densities) is studied inprobabilistic number theory.
A subsetA of positive integers has natural densityα if the proportion of elements ofA among allnatural numbers from1 ton converges toα asn tends to infinity.
More explicitly, if one defines for any natural numbern the countingfunctiona(n) as the number of elements ofA less than or equal ton, then the natural density ofA beingα exactly means that[1]
a(n)/n →α asn → ∞.
It follows from the definition that if a setA has natural densityα then0 ≤α ≤ 1.
Let be a subset of the set of natural numbers For any, define to be the intersection and let be the number of elements of less than or equal to.
Define theupper asymptotic density of (also called the "upper density") bywhere lim sup is thelimit superior.
Similarly, define thelower asymptotic density of (also called the "lower density") bywhere lim inf is thelimit inferior. One may say has asymptotic density if, in which case is equal to this common value.
This definition can be restated in the following way:if this limit exists.[2]
These definitions may equivalently[citation needed] be expressed in the following way. Given a subset of, write it as an increasing sequence indexed by the natural numbers:Thenandif the limit exists.
A somewhat weaker notion of density is theupper Banach density of a set This is defined as[citation needed]
The set ofabundant numbers has non-zero density.[3] Marc Deléglise showed in 1998 that the density of the set of abundant numbers is between 0.2474 and 0.2480.[4]
The set of numbers whose binary expansion contains an odd number of digits is an example of a set which does not have an asymptotic density, since the upper density of this set is whereas its lower density is
The set of numbers whosedecimal expansion begins with the digit 1 similarly has no natural density: the lower density is 1/9 and the upper density is 5/9.[1] (SeeBenford's law.)
Consider anequidistributed sequence in and define a monotone family of sets: Then, by definition, for all.
Other density functions on subsets of the natural numbers may be defined analogously. For example, thelogarithmic density of a setA is defined as the limit (if it exists)
Upper and lower logarithmic densities are defined analogously.
The intuition behind using in the summand comes from the fact that theharmonic series asymptotically approaches, where is theEuler–Mascheroni constant. Thus, this definition ensures that the logarithmic density of the natural numbers is.
For the set of multiples of an integer sequence, theDavenport–Erdős theorem states that the natural density, when it exists, is equal to the logarithmic density.[5]
Tenenbaum, Gérald (1995).Introduction to analytic and probabilistic number theory. Cambridge Studies in Advanced Mathematics. Vol. 46.Cambridge University Press.Zbl0831.11001.