In
number theory, natural density (also referred to as asymptotic density or arithmetic density) is one method to measure how "large" a
subset
In mathematics, Set (mathematics), set ''A'' is a subset of a set ''B'' if all Element (mathematics), elements of ''A'' are also elements of ''B''; ''B'' is then a superset of ''A''. It is possible for ''A'' and ''B'' to be equal; if they are ...
of the
set
Set, The Set, SET or SETS may refer to:
Science, technology, and mathematics Mathematics
*Set (mathematics), a collection of elements
*Category of sets, the category whose objects and morphisms are sets and total functions, respectively
Electro ...
of
natural numbers is. It relies chiefly on the
probability of encountering members of the desired subset when combing through the
interval as ''n '' grows large.
Intuitively, it is thought that there are more
positive integer
In mathematics, the natural numbers are those numbers used for counting (as in "there are ''six'' coins on the table") and ordering (as in "this is the ''third'' largest city in the country").
Numbers used for counting are called ''cardinal n ...
s than
perfect square
''Perfect Square'' is a 2004 concert film of the alternative rock Musical ensemble, band R.E.M. (band), R.E.M., filmed on July 19, 2003, at the bowling green, Bowling Green in Wiesbaden, Germany. It was released by Warner Reprise Video on March 9, ...
s, since every perfect square is already positive, and 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 are
infinite and
countable and can therefore be put in
one-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 (see
Schnirelmann density, which is similar to natural density but defined for all subsets of
).
If an integer is randomly selected from the interval , then the probability that it belongs to ''A'' is the ratio of the number of elements of ''A'' in to the total number of elements in . If this probability tends to some
limit
Limit or Limits may refer to:
Arts and media
* ''Limit'' (manga), a manga by Keiko Suenobu
* ''Limit'' (film), a South Korean film
* Limit (music), a way to characterize harmony
* "Limit" (song), a 2016 single by Luna Sea
* "Limits", a 2019 ...
as ''n'' tends to infinity, then this limit is referred to as the asymptotic density of ''A''. This notion can be understood as a kind of probability of choosing a number from the set ''A''. Indeed, the asymptotic density (as well as some other types of densities) is studied in
probabilistic number theory.
Definition
A subset ''A'' of positive integers has natural density ''α'' if the proportion of elements of ''A'' among all
natural numbers from 1 to ''n'' converges to ''α'' as ''n'' tends to infinity.
More explicitly, if one defines for any natural number ''n'' the counting
function ''a''(''n'') as the number of elements of ''A'' less than or equal to ''n'', then the natural density of A being α exactly means that
[
:''a''(''n'') /''n'' → α as ''n'' → ∞.
It follows from the definition that if a set ''A'' has natural density ''α'' then 0 ≤ ''α'' ≤ 1.
]
Upper and lower asymptotic density
Let be a subset of the set of natural numbers For any , define the set as follows: Furthermore, define .
Define the ''upper asymptotic density'' (also called the "upper density") of by
:
where lim sup is the limit superior. is also known simply as the upper density of
Similarly, , the ''lower asymptotic density'' (also called the "lower density") of , is defined by
:
where lim inf is the limit 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.
It can be proven that the definitions imply that the following also holds. If one were to write a subset of as an increasing sequence indexed by the natural numbers
:
then
:
:
and
if the limit exists.
A somewhat weaker notion of density is the ''upper Banach density''; given a set , define as
:
Properties and examples
* For any finite set ''F'' of positive integers, ''d''(''F'') = 0.
* If ''d''(''A'') exists for some set ''A'', and ''A''c denotes its complement set with respect to then ''d''(''A''c) = 1 − ''d''(''A'').
** Corollary: If is finite (including the case ),
* If and exist, then
::
* If is the set of all squares, then ''d''(''A'') = 0.
* If is the set of all even numbers, then ''d''(''A'') = 0.5. Similarly, for any arithmetical progression we get
* For the set ''P'' of all primes we get from the prime number theorem
In mathematics, the prime number theorem (PNT) describes the asymptotic distribution of the prime numbers among the positive integers. It formalizes the intuitive idea that primes become less common as they become larger by precisely quantifying ...
that ''d''(''P'') = 0.
* The set of all square-free integers has density More generally, the set of all ''n''th-power-free numbers for any natural ''n'' has density where is the Riemann zeta function
The Riemann zeta function or Euler–Riemann zeta function, denoted by the Greek letter (zeta), is a mathematical function of a complex variable defined as \zeta(s) = \sum_^\infty \frac = \frac + \frac + \frac + \cdots for \operatorname(s) > ...
.
* The set of abundant numbers has non-zero density. Marc Deléglise showed in 1998 that the density of the set of abundant numbers is between 0.2474 and 0.2480.
* 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 whose decimal expansion begins with the digit 1 similarly has no natural density: the lower density is 1/9 and the upper density is 5/9.[Tenenbaum (1995) p.261] (See Benford's law.)
* Consider an equidistributed sequence in