In mathematics, the Barban–Davenport–Halberstam theorem is a statement about the distribution of prime numbers in an arithmetic progression. It is known that in the long run primes are distributed equally across possible progressions with the same difference. Theorems of the Barban–Davenport–Halberstam type give estimates for the error term, determining how close to uniform the distributions are.
Let a be coprime to q and
\vartheta(x;q,a)=\sump\leqlogp
be a weighted count of primes in the arithmetic progression a mod q. We have
\vartheta(x;q,a)=
x | |
\varphi(q) |
+E(x;q,a)
where φ is Euler's totient function and the error term E is small compared to x. We take a sum of squares of error terms
V(x,Q)=\sumq\suma
Then we have
V(x,Q)=O(Qxlogx)+O(x2(logx)-A)
for
1\leqQ\leqx
This form of the theorem is due to Gallagher. The result of Barban is valid only for
Q\leqx(logx)-B