# Schnirelmann density

In additive number theory, the Schnirelmann density of a sequence of numbers is a way to measure how "dense" the sequence is. It is named after Russian mathematician Lev Schnirelmann, who was the first to study it.

## Definition

The Schnirelmann density of a set of natural numbers A is defined as
    $\sigma A=\inf _{n}{\frac {A(n)}{n}},$
where A(n) denotes the number of elements of A not exceeding n and inf is infimum.
The Schnirelmann density is well-defined even if the limit of A(n)/n as n → ∞ fails to exist (see upper and lower asymptotic density).

## Properties

By definition, 0 ≤ A(n) ≤ n and n σA ≤ A(n) for all n, and therefore 0 ≤ σA ≤ 1, and σA = 1 if and only if A = N. Furthermore,
    $\sigma A=0\Rightarrow \forall \epsilon >0\ \exists n\ A(n)<\epsilon n.$

### Sensitivity

The Schnirelmann density is sensitive to the first values of a set:
    $\forall k\ k\notin A\Rightarrow \sigma A\leq 1-1/k$.
In particular,
    $1\notin A\Rightarrow \sigma A=0$
and
    $2\notin A\Rightarrow \sigma A\leq {\frac {1}{2}}.$
Consequently, the Schnirelmann densities of the even numbers and the odd numbers, which one might expect to agree, are 0 and 1/2 respectively. Schnirelmann and Yuri Linnik exploited this sensitivity.

## Schnirelmann's theorems

If we set ${\mathfrak {G}}^{2}=\{k^{2}\}_{k=1}^{\infty }$, then Lagrange's four-square theorem can be restated as $\sigma ({\mathfrak {G}}^{2}\oplus {\mathfrak {G}}^{2}\oplus {\mathfrak {G}}^{2}\oplus {\mathfrak {G}}^{2})=1$. (Here the symbol $A\oplus B$ denotes the sumset of $A\cup \{0\}$ and $B\cup \{0\}$.) It is clear that $\sigma {\mathfrak {G}}^{2}=0$. In fact, we still have $\sigma ({\mathfrak {G}}^{2}\oplus {\mathfrak {G}}^{2})=0$, and one might ask at what point the sumset attains Schnirelmann density 1 and how does it increase. It actually is the case that $\sigma ({\mathfrak {G}}^{2}\oplus {\mathfrak {G}}^{2}\oplus {\mathfrak {G}}^{2})=5/6$ and one sees that sumsetting ${\mathfrak {G}}^{2}$ once again yields a more populous set, namely all of $\mathbb {N}$. Schnirelmann further succeeded in developing these ideas into the following theorems, aiming towards Additive Number Theory, and proving them to be a novel resource (if not greatly powerful) to attack important problems, such as Waring's problem and Goldbach's conjecture.
   Theorem. Let $A$ and $B$ be subsets of $\mathbb {N}$. Then
   $\sigma (A\oplus B)\geq \sigma A+\sigma B-\sigma A\cdot \sigma B.$
Note that $\sigma A+\sigma B-\sigma A\cdot \sigma B=1-(1-\sigma A)(1-\sigma B)$. Inductively, we have the following generalization.
   Corollary. Let $A_{i}\subseteq \mathbb {N}$ be a finite family of subsets of $\mathbb {N}$. Then
   $\sigma \left(\bigoplus _{i}A_{i}\right)\geq 1-\prod _{i}\left(1-\sigma A_{i}\right).$
The theorem provides the first insights on how sumsets accumulate. It seems unfortunate that its conclusion stops short of showing $\sigma$ being superadditive. Yet, Schnirelmann provided us with the following results, which sufficed for most of his purpose.
   Theorem. Let $A$ and $B$ be subsets of $\mathbb {N}$. If $\sigma A+\sigma B\geq 1$, then
   $A\oplus B=\mathbb {N} .$
   Theorem. (Schnirelmann) Let $A\subseteq \mathbb {N}$. If $\sigma A>0$ then there exists $k$ such that
   $\bigoplus _{i=1}^{k}A=\mathbb {N} .$

## Additive bases

A subset $A\subseteq \mathbb {N}$ with the property that $A\oplus A\oplus \cdots \oplus A=\mathbb {N}$ for a finite sum, is called an additive basis, and the least number of summands required is called the degree (sometimes order) of the basis. Thus, the last theorem states that any set with positive Schnirelmann density is an additive basis. In this terminology, the set of squares ${\mathfrak {G}}^{2}=\{k^{2}\}_{k=1}^{\infty }$ is an additive basis of degree 4. (About an open problem for additive bases, see Erdős–Turán conjecture on additive bases.)

## Mann's theorem

Historically the theorems above were pointers to the following result, at one time known as the $\alpha +\beta$ hypothesis. It was used by Edmund Landau and was finally proved by Henry Mann in 1942.
   Theorem. (Mann 1942) Let $A$ and $B$ be subsets of $\mathbb {N}$. In case that $A\oplus B\neq \mathbb {N}$, we still have
   $\sigma (A\oplus B)\geq \sigma A+\sigma B.$
An analogue of this theorem for lower asymptotic density was obtained by Kneser. At a later date, E. Artin and P. Scherk simplified the proof of Mann's theorem.

## Waring's problem

Let $k$ and $N$ be natural numbers. Let ${\mathfrak {G}}^{k}=\{i^{k}\}_{i=1}^{\infty }$. Define $r_{N}^{k}(n)$ to be the number of non-negative integral solutions to the equation
    $x_{1}^{k}+x_{2}^{k}+\cdots +x_{N}^{k}=n$
and $R_{N}^{k}(n)$ to be the number of non-negative integral solutions to the inequality
    $0\leq x_{1}^{k}+x_{2}^{k}+\cdots +x_{N}^{k}\leq n,$
in the variables $x_{i}$, respectively. Thus $R_{N}^{k}(n)=\sum _{i=0}^{n}r_{N}^{k}(i)$. We have
* $r_{N}^{k}(n)>0\leftrightarrow n\in N{\mathfrak {G}}^{k},$
* $R_{N}^{k}(n)\geq \left({\frac {n}{N}}\right)^{\frac {N}{k}}.$
The volume of the $N$-dimensional body defined by $0\leq x_{1}^{k}+x_{2}^{k}+\cdots +x_{N}^{k}\leq n$, is bounded by the volume of the hypercube of size $n^{1/k}$, hence $R_{N}^{k}(n)=\sum _{i=0}^{n}r_{N}^{k}(i)\leq n^{N/k}$. The hard part is to show that this bound still works on the average, i.e.,
   Lemma. (Linnik) For all $k\in \mathbb {N}$ there exists $N\in \mathbb {N}$ and a constant $c=c(k)$, depending only on $k$, such that for all $n\in \mathbb {N}$,
   $r_{N}^{k}(m)<cn^{{\frac {N}{k}}-1}$
   for all $0\leq m\leq n.$
With this at hand, the following theorem can be elegantly proved.
   Theorem. For all $k$ there exists $N$ for which $\sigma (N{\mathfrak {G}}^{k})>0$.
We have thus established the general solution to Waring's Problem:
   Corollary. (Hilbert 1909) For all $k$ there exists $N$, depending only on $k$, such that every positive integer $n$ can be expressed as the sum of at most $N$ many $k$-th powers.

## Schnirelmann's constant

In 1930 Schnirelmann used these ideas in conjunction with the Brun sieve to prove Schnirelmann's theorem, that any natural number greater than 1 can be written as the sum of not more than C prime numbers, where C is an effectively computable constant: Schnirelmann obtained C < 800000. Schnirelmann's constant is the lowest number C with this property.
Olivier Ramaré showed in (Ramaré 1995) that Schnirelmann's constant is at most 7, improving the earlier upper bound of 19 obtained by Hans Riesel and R. C. Vaughan.
Schnirelmann's constant is at least 3; Goldbach's conjecture implies that this is the constant's actual value.
In 2013, Harald Helfgott proved Goldbach's weak conjecture for all odd numbers. Therefore, Schnirelmann's constant is at most 4.

## Essential components

Khintchin proved that the sequence of squares, though of zero Schnirelmann density, when added to a sequence of Schnirelmann density between 0 and 1, increases the density:
    $\sigma (A+{\mathfrak {G}}^{2})>\sigma (A){\text{ for }}0<\sigma (A)<1.$
This was soon simplified and extended by Erdős, who showed, that if A is any sequence with Schnirelmann density α and B is an additive basis of order k then
    $\sigma (A+B)\geq \alpha +{\frac {\alpha (1-\alpha )}{2k}}\,,$
and this was improved by Plünnecke to
    $\sigma (A+B)\geq \alpha ^{1-{\frac {1}{k}}}\ .$
Sequences with this property, of increasing density less than one by addition, were named essential components by Khintchin. Linnik showed that an essential component need not be an additive basis as he constructed an essential component that has x$^{o(1)}$ elements less than x. More precisely, the sequence has
    $e^{(\log x)^{c}}$
elements less than x for some c < 1. This was improved by E. Wirsing to
    $e^{{\sqrt {\log x}}\log \log x}.$
For a while, it remained an open problem how many elements an essential component must have. Finally, Ruzsa determined that for every ε > 0 there is an essential component which has at most c(log x)$^{1+ε}$ elements up to x, but there is no essential component which has c(log x)$^{1+o(1)}$ elements up to x.