ArticleslgStudy

mathematics

Natural density

Natural density is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Natural density rather than just read about it. In short: In number theory, natural density, also referred to as asymptotic density or arithmetic density, is a measure of how "large" a subset of the set of natural numbers is. It relies chiefly on the probability of encountering members of the desired subset when combing through the interval [1, n] as n grows large.

Key takeaways

  • Natural density belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Natural density to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Natural density from memory before moving on to harder problems.

Reference excerpt

In number theory, natural density, also referred to as asymptotic density or arithmetic density, is a measure of how "large" a subset of the set of natural numbers is. It relies chiefly on the probability of encountering members of the desired subset when combing through the interval [1, n] as n grows large. For example, it may seem intuitively that there are more positive integers than perfect 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 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 [1, n], then the probability that it belongs to A is the ratio of the number of elements of A in [1, n] to the total number of elements in [1, n]. If this probability tends to some limit 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

It follows from the definition that if a set A has natural density α then 0 ≤ α ≤ 1.

Upper and lower asymptotic density Let A be a subset of the set of natural numbers ℕ={1,2,…}. For any n∈ℕ, define A(n) to be the intersection A(n)={1,2,…,n}∩A, and let a(n)=|A(n)| be the number of elements of A less than or equal to n. Define the upper asymptotic density d‾(A) of A (also called the "upper density") by d‾(A)=lim supn→∞a(n)n where lim sup is the limit superior. Similarly, define the lower asymptotic density d_(A) of A (also called the "lower density") by d_(A)=lim infn→∞a(n)n where lim inf is the limit inferior. One may say A has asymptotic density d(A) if d_(A)=d‾(A), in which case d(A) is equal to this common value. This definition can be restated in the following way: d(A)=limn→∞a(n)n if this limit exists. These definitions may equivalently be expressed in the following way. Given a subset A of ℕ, write it as an increasing sequence indexed by the natural numbers: A={a1<a2<…}. Then d_(A)=lim infn→∞nan, d‾(A)=lim supn→∞nan and d(A)=limn→∞nan if the limit exists. A somewhat weaker notion of density is the upper Banach density d∗(A) of a set A⊆ℕ. This is defined as d∗(A)=lim supN−M→∞|A∩{M,M+1,…,N}|N−M+1.

Properties and examples

For any finite set F of positive integers, d(F) = 0. If d(A) exists for some set A and Ac denotes its complement set with respect to ℕ, then d(Ac) = 1 − d(A). Corollary: If F⊂ℕ is finite (including the case F=∅︀), d(ℕ∖F)=1. If d(A),d(B), and d(A∪B) exist, then max⁡{d(A),d(B)}≤d(A∪B)≤min⁡{d(A)+d(B),1}. If A={n2:n∈ℕ} is the set of all squares, then d(A) = 0. If A={2n:n∈ℕ} is the set of all even numbers, then d(A) = 0.5. Similarly, for any arithmetical progression A={an+b:n∈ℕ} we get d(A)=1a. For the set P of all primes we get from the prime number theorem that d(P) = 0. The set of all square-free integers has density 6π2. More generally, the set of all nth-power-free numbers for any natural n has density 1ζ(n), where ζ(n) is the Riemann zeta function. 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 A=⋃n=0∞{22n,…,22n+1−1} 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 d‾(A)=limm→∞1+22+⋯+22m22m+1−1=limm→∞22m+2−13(22m+1−1)=23, whereas its lower density is d_(A)=limm→∞1+22+⋯+22m22m+2−1=limm→∞22m+2−13(22m+2−1)=13. 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. (See Benford's law.) Consider an equidistributed sequence {αn}n∈ℕ in [0,1] and define a monotone family {Ax}x∈[0,1] of sets: Ax:={n∈ℕ:αn<x}. Then, by definition, d(Ax)=x for all x. If S is a set of positive upper density then Szemerédi's theorem states that S contains arbitrarily large finite arithmetic progressions, and the Furstenberg–Sárközy theorem states that some two members of S differ by a square number.

Other density functions Other density functions on subsets of the natural numbers may be defined analogously. For example, the logarithmic density of a set A is defined as the limit (if it exists) 𝜹(A)=limx→∞1log⁡x∑n∈A,n≤x1n. Upper and lower logarithmic densities are defined analogously. The intuition behind using 1n in the summand comes from the fact that the harmonic series asymptotically approaches log⁡n+γ, where γ=0.577… is the Euler–Mascheroni constant. Thus, this definition ensures that the logarithmic density of the natural numbers is 1. For the set of multiples of an integer sequence, the Davenport–Erdős theorem states that the natural density, when it exists, is equal to the logarithmic density.

See also Dirichlet density Erdős conjecture on arithmetic progressions

Notes

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Natural density

Start with the simplest possible case. Write down what Natural density claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Natural density before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Natural density ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Natural density

In research
Natural density appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Natural density in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Natural density is common in secondary-school and first-year university syllabi. It links to neighbouring topics Combinatorics, Number theory, so understanding it makes those chapters shorter.
In everyday life
Look for Natural density outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Natural density” →

How to study Natural density in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Natural density means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Natural density out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Natural density in simple terms?

In number theory, natural density, also referred to as asymptotic density or arithmetic density, is a measure of how "large" a subset of the set of natural numbers is. It relies chiefly on the probability of encountering members of the desired subset when combing through the interval [1, n] as n gr…

Why does Natural density matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Natural density?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Natural density.

Tags

  • Combinatorics
  • Number theory

Keep exploring