Preprint
Article

This version is not peer-reviewed.

Weighted Prime Number Theorem on Arithmetic Progressions with Refinements

A peer-reviewed article of this preprint also exists.

Submitted:

22 July 2025

Posted:

22 July 2025

You are already at the latest version

Abstract
We extend Dirichlet’s prime number theorem on arithmetic progressions to the weighted counting function πs(x; q, a) for (a, q) = 1 with the weight p−w for prime p with w ≥ 0. We also prove that when 0 ≤ w < 1/2, the difference πw(x; q, a) − πw(x; q, b) changes its sign infinitely many times as x grows for any coprime a, b (a ̸= b) with p under the assumption that Dirichlet L-functions have no real nontrivial zeros.. This result gives a justification of the theory of Aoki-Koyama that Chebyshev’s bias is formulated by the asymptotic behavior of πw(x; q, a) − πw(x; q, b) at s = 1/2.
Keywords: 
;  ;  ;  

1. Introduction

We define the weighted counting function of primes in arithmetic progressions as
π w ( x ; q , a ) = p < x : prime p a ( mod q ) p w ( w 0 )
for q Z . This is a generalization of the classical counting function π ( x ; q , a ) = π 0 ( x ; q , a ) . In 1837 Dirichlet proved that
π ( x ; q , a ) π ( x ; q , b ) ( x )
for any a, b which are coprime with q, where f ( x ) g ( x ) ( x ) means that f ( x ) / g ( x ) 1 as x .
On the other hand, in 1853 Chebyshev found the phenomenon that there tend to be more primes p satisfying p 3 ( mod 4 ) than those with p 1 ( mod 4 ) . In fact, the inequality
π ( x ; 4 , 3 ) π ( x ; 4 , 1 )
holds for any x less than 26861, which is the first prime number violating the inequality (1.1). However, the both sides draw equal at the next prime 26863, and π ( x ; 4 , 3 ) gets ahead again until 616841. It is computed that more than 97% of x < 10 11 satisfy the inequality (1.1). This phenomenon is called Chebyshev’s bias, and is one of major unsolved mysteries in number theory.
Later, Littlewood [1] proved that the difference π ( x ; 4 , 3 ) π ( x ; 4 , 1 ) changes its sign infinitely many times. In 2023, Aoki and Koyama [2] suggested that Littlewood’s phenomenon no longer holds if we put the weight p 1 / 2 . They actually obtained the asymptotic under the assumption of the Deep Riemann Hypothesis that
π 1 2 ( x ; 4 , 3 ) π 1 2 ( x ; 4 , 1 ) 1 2 log log x ( x ) .
The Deep Riemann Hypothesis (DRH) is a conjecture asserting the convergence of the Euler product of the corresponding L-function on the critical line. More generally they defined Chebyshev bias towards p b ( mod q ) (or against p a ( mod q ) ) as the asymptotic
π 1 2 ( x ; q , b ) π 1 2 ( x ; q , a ) C log log x ( x )
with a constant C > 0 depending on q. Under DRH, it is also proved for any w > 1 / 2 that
π w ( x ; q , b ) π w ( x ; q , q ) = O ( 1 ) ( x ) .
This was one of the reasons why Aoki-Koyama chose w = 1 / 2 for formulating the bias. But the behavior of the left hand side for 0 < w < 1 / 2 was unknown.
In this paper, we will solve this problem by generalizing Littlewood’s theorem to 0 w < 1 / 2 . In what follows we use the standard notation
Li ( x ) = 2 x d t log t .
and φ ( q ) = # ( Z / q Z ) × . Our first main theorem is as follows.
Theorem 1.1
(Weighted prime number theorem). Let a Z be coprime with q Z . For 0 w < 1 , it holds that
π w ( x ; q , a ) 1 φ ( q ) Li ( x 1 w ) ( x ) .
We write f ( x ) = Ω ( g ( x ) ) ( x ) if the following holds: There exists a constant C > 0 such that for any x 0 > 0 , there exist x 1 , x 2 > x 0 such that f ( x 1 ) > C g ( x 1 ) and f ( x 2 ) < C g ( x 2 ) .
It is known by Stark ([3] Theorem 2) that for any coprime a , b ( a b ) with q
π ( x ; q , a ) π ( x ; q , b ) = Ω x 1 2 log x ( x )
under the assumption that the Dirichlet L-function L ( s , χ ) has no zeros in the interval 0 < s < 1 for any Dirichlet character χ modulo q. Actually Stark obtained the estimate (1.4) for more general cases φ ( q ) π ( x ; q , a ) φ ( q ) π ( x ; q , b ) , but for our purpose the case q = q is sufficient.
Our second main theorem is a generalization of it.
Theorem 1.2.
Suppose that L ( s , χ ) has no zeros in the interval 0 < s < 1 for any Dirichlet character χ modulo q. For 0 w < 1 / 2 and any coprime a , b ( a b ) with q, it holds that
π w ( x ; q , a ) π w ( x ; q , b ) = Ω x 1 2 w log x ( x ) .
In particular, π w ( x ; q , a ) π w ( x ; q , b ) ( 0 w < 1 / 2 ) changes its sign infinitely many times.
Theorem 1.2 together with the estimate (1.3) justifies the choice of w = 1 / 2 for the formulation of Chebyshev’s bias.

2. Weighted Prime Number Theorem

The following lemma was proved in the previous paper [4].
Lemma 2.1.
Assume f ( x ) and g ( x ) are positive valued function on x 0 . If lim x 0 x f ( t ) d t = and g ( t ) = o ( 1 ) , it holds that
0 x f ( t ) g ( t ) d t = o 0 x f ( t ) d t ( x ) .
For q, a Z with ( a , q ) = 1 and 0 w < 1 , we denote
ψ w ( x ; q , a ) = p a ( mod q ) p m x log p p m w ,
where the sum is taken over pairs ( p , m ) with m a positive integer and p a prime satisfying p a ( mod q ) and p m x .
Lemma 2.2.
ψ w ( x ; q , a ) x 1 w φ ( q ) ( 1 w ) ( x )
Proof. 
Putting ψ ( x ; q , a ) = ψ 0 ( x ; q , a ) , we have by partial summation that
ψ w ( x ; q , a ) = ψ ( x ; q , a ) x w + w 2 x ψ ( t ; q , a ) t w + 1 d t .
From the classical prime number theorem ψ ( x ; q , a ) = x / φ ( q ) + o ( x ) ( x ) , we compute
ψ w ( x ; q , a ) = 1 φ ( q ) x 1 w + o x 1 w + w 2 x 1 t w d t + 2 x o 1 t w d t .
Here the last integral is estimated by Lemma 2.1 as
2 x o 1 t w d t = o 2 x 1 t w d t .
Thus we have
ψ w ( x ; q , a ) = 1 φ ( q ) x 1 w + o x 1 w + w 2 x 1 t w d t + o 2 x 1 t w d t = 1 φ ( q ) x 1 w 1 w + o x 1 w .
For 0 w < 1 we put
θ w ( x ; q , a ) = p a ( mod q ) p x log p p w ,
where the sum is taken over primes p satisfying p a ( mod q ) and p x .
Lemma 2.3.
It holds that
ψ w ( x ; q , a ) x log x ( 1 2 w ) x w θ w ( x ; q , a ) ψ w ( x ; q , a ) .
Proof. 
From the definitions the right iequality is immediate. The left one is deduced as follows.
ψ w ( x ; q , a ) θ w ( x ; q , a ) log x p a ( mod q ) p x 1 p 2 w log x 2 n x 1 n 2 w log x 1 x d t t 2 w x 1 2 w log x 1 2 w .
Proof of Theorem 1.1. 
From Lemmas 2.2 and 2.3 we have
θ w ( x ; q , a ) ψ w ( x ; q , a ) x 1 w φ ( q ) ( 1 w ) ( x ) .
Now we will establish the relation between θ w ( x ; q , a ) and π w ( x ; q , a ) . Clearly it holds that
θ w ( x ; q , a ) p a ( mod q ) p x log x p w = ( log x ) π w ( x ; q , a ) .
Hence
θ w ( x ; q , a ) log x π w ( x ; q , a ) .
On the other hand, for 0 ε < 1 we have 1 < x 1 ε x and
θ w ( x ; q , a ) p a ( mod q ) x 1 ε p x log p p w p a ( mod q ) x 1 ε p x log x 1 ε p w = log x 1 ε p a ( mod q ) x 1 ε p x 1 p w = ( log x 1 ε ) ( π w ( x ; q , a ) π w ( x 1 ε ; q , a ) ) .
Therefore
π w ( x ; q , a ) 1 1 ε · θ w ( x ; q , a ) log x + π w ( x 1 ε ; q , a ) .
Since the last term is estimated as
π w ( x 1 ε ; q , a ) = p a ( mod q ) p x 1 ε 1 p w < n x 1 ε 1 n w = O ( ( x 1 w ) 1 ε ) ,
We conclude that
θ w ( x ; q , a ) log x π w ( x ; q , a ) 1 1 ε · θ w ( x ; q , a ) log x + O ( ( x 1 ε ) 1 w ) .
Now combining with (2.1) we reach
π w ( x ; q , a ) θ w ( x ; q , a ) log x x 1 w φ ( q ) ( 1 w ) log x Li ( x 1 w ) φ ( q ) .

3. Refinements

In this section we prove Threom 1.2. The following lemma plays the role for reducing the genral weight w to the case of w = 0 .
Lemma 3.1.
0 π w ( e u ; q , a ) e u s d u = s + w s 0 π ( e u ; q , a ) e u ( s + w ) d u .
Proof. 
Denote by p n the n-th smallest element in the set of primes p such that p a ( mod q ) . Putting x = e u , we compute
0 π w ( e u ; q , a ) e u s d u = 1 π w ( x ; q , a ) x s 1 d x = n = 1 p n p n + 1 p a ( mod q ) p p n p w x s 1 d x = n = 1 p a ( mod q ) p p n p w p n s p n + 1 s s = 1 s n = 1 p a ( mod q ) p p n p w p n s n = 2 p a ( mod q ) p p n 1 p w p n s = 1 s p 1 s w + n = 2 p n s w = 1 s n = 1 p n s w .
Hence for w = 0 we have
0 π ( e u ; q , a ) e u s d u = 1 s n = 1 p n s .
By substituting s + w in the variable s, we obtain
0 π ( e u ; q , a ) e u ( s + w ) d u = 1 s + w n = 1 p n s w = s s + w 0 π w ( e u ; q , a ) e u s d u .
We will apply the theory of Tauberian theorems, which was developed by Ingham in the following theorem.
Theorem 3.2. ([5] Theorem 1) Let
F ( s ) = 0 A ( u ) e s u d u ,
where A ( u ) is real valued and absolutely integrable on every interval 0 u U , and the integral is absolutely convergent in some half plane σ > σ 1 0 .
Let A * ( u ) be a real trigonometrical polynomial
A * ( u ) = n = N N α n e i γ n u ( γ n R , γ n = γ n , α n = α n ¯ ) ,
and let
F * ( s ) = 0 A * ( u ) e s u d u = n = N N α n s i γ n ( σ > 0 ) .
Suppose that F ( s ) F * ( s ) is regular in the region σ 0 , T t T for some T > 0 .
Then, it holds that
lim inf u A ( u ) lim u A T * ( u ) lim sup u A ( u ) ,
where
A T * ( u ) = | γ n | T 1 | γ n | T α n e i γ n u = α 0 + 2 Re 0 < γ n < T 1 γ n T α n e i γ n u .
This theorem was reformulated by Stark for the purpose of refining the estimate of π ( x ; q , a ) π ( x ; q , b ) as follows:
Theorem 3.3. ([3] p.314) Put s = σ + i t C . Let
F ( s ) s = 0 A ( u ) e s u d u ,
where A ( u ) is real valued and absolutely integrable on every interval 0 u U , and the integral is absolutely convergent for σ > 1 . For any real sequence γ n ( n Z ) with γ n = γ n and coefficients α n C with α n = α n ¯ , set
F 1 ( s ) = n = N N α n log s 1 2 i γ n .
Suppose that for some T > 0 , F ( s ) F 1 ( s ) is continuous in the region σ 1 / 2 , T t T and analytic in the interior of this region. Then for any u 0 ,
lim sup u u A ( u ) e u / 2 | γ n | T α n 1 2 + i γ n 1 | γ n | T e i γ n u 0 .
Theorem 3.3 follows from Theorem 3.2 applied to the derivative with respect to s of
F ( s ) s = 1 A ( u ) + 1 u n = N N α n 1 2 + i γ n e ( 1 2 + i γ n ) u e s u d u . = n = N N α n 1 2 + i γ n log s 1 2 i γ n + ( an entire function in s )
The estimate (1.4) is an immediate consequence of Theorem 3.3 and the fact that the function
0 π ( e u ; q , a ) π ( e u ; q , b ) e u s d u
is analytic in Re ( s ) > 1 / 2 ([3] Lemmas 1 and 2).
Proof of Theorem 1.2. 
From Lemma 3.1 and the above discussion, the function
0 π w ( e u ; q , a ) π w ( e u ; q , b ) e u s d u
is analytic in Re ( s ) > 1 2 w . For 0 < w < 1 2 , we replace (3.1) with the following function:
F w ( s ) s + w = n = N N α n 1 2 + i γ n log s + w 1 2 i γ n + ( an entire function in s ) = 1 A w ( u ) + 1 u n = N N α n 1 2 + i γ n e ( 1 2 w + i γ n ) u e s u d u ,
where A w ( u ) = π w ( e u ; q , a ) π w ( e u ; q , b ) . Then for any u 0 ,
lim sup u u A w ( u ) e ( 1 2 w ) u | γ n | T α n 1 2 + i γ n 1 | γ n | T e i γ n u 0 .
Consequently it holds that
A w ( u ) = Ω e ( 1 2 w ) u u ,
which is the desired result. □

References

  1. J. E. Littlewood: Distribution des Nombres Premiers. C. R. Acad. Sci. Paris 158 (1914) 1869-1872.
  2. M. Aoki and S. Koyama, “Chebyshev’s bias against splitting and principal primes in global fields,” J. Number Theory, 245 (2023), 233–262. [CrossRef]
  3. H. Stark: A problem in comparative prime number theory. Acta Arith. XVIII (1971) 311-320.
  4. K. Shimada: Weighted prime number theorem with refinement. (preprint) 2025.
  5. A. E. Ingham: On two conjectures in the theory of numbers. Amer. J. 64 (1942) 313-319. [CrossRef]
  6. G. H. Hardy and J. E. Littlewood, “Contributions to the theory of the Riemann zeta-function and the theory of the distribution of primes,” Acta Mathematica, 41 (1918), 119–196. [CrossRef]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

Disclaimer

Terms of Use

Privacy Policy

Privacy Settings

© 2025 MDPI (Basel, Switzerland) unless otherwise stated