TOPICS
Search

Modular Prime Counting Function


The modular prime counting function pi_(a,b)(x) counts the primes p<=x with p=b  (moda), where a>=2 and 0<=b<a are integers. It is analogous to the prime counting function pi(x) (Shanks 1993, pp. 21-22).

Littlewood proved that pi_(4,1)(x) and pi_(4,3)(x) change leads infinitely often (Granville and Martin 2004), a result known as the prime quadratic effect. The bias toward positive values of pi_(4,3)(x)-pi_(4,1)(x) is known as the Chebyshev bias.

For fixed a, the counts pi_(a,b)(x) for residue classes b relatively prime to a are asymptotically equal: the ratio of any two tends to 1 as x->infty (Granville and Martin 2004). This does not imply equality of their values at finite x. The following table gives pi_(a,b)(x) for several small moduli and powers of ten (Shanks 1993).

npi_(3,1)(n)pi_(3,2)(n)pi_(4,1)(n)pi_(4,3)(n)
SloaneA091115A091116A091098A091099
10^11212
10^211131113
10^380878087
10^4611617609619
10^54784480747834808
10^639231392663917539322
10^7332194332384332180332398
10^82880517288093728805042880950
10^925422713254248202542349125424042
npi_(6,1)(n)pi_(6,5)(n)
SloaneA091115A091119
10^111
10^21112
10^38086
10^4611616
10^547844806
10^63923139265
10^7332194332383
10^828805172880936
10^92542271325424819
npi_(7,1)(n)pi_(7,2)(n)pi_(7,3)(n)pi_(7,4)(n)pi_(7,5)(n)pi_(7,6)(n)
SloaneA091120A091121A091122A091123A091124A091125
10^1011010
10^2345354
10^3282730262927
10^4203203209202211200
10^5159315841613160116041596
10^6130631306513105130691310513090
10^7110653110771110815110776110787110776
10^8960023960114960213960085960379960640
10^9847422184747968475123847402184746308474742
npi_(8,1)(n)pi_(8,3)(n)pi_(8,5)(n)pi_(8,7)(n)
SloaneA091126A091127A091128A091129
10^10111
10^25766
10^337444343
10^4295311314308
10^52384240923992399
10^619552196531962319669
10^7165976166161166204166237
10^81439970144054414405341440406
10^912711220127123401271227112711702

Partitioning the residue classes modulo 4 into those modulo 8 gives the exact identities

pi_(4,1)(x)=pi_(8,1)(x)+pi_(8,5)(x)
(1)
pi_(4,3)(x)=pi_(8,3)(x)+pi_(8,7)(x).
(2)

Erdős proved that there exists at least one prime of the form 4k+1 and at least one prime of the form 4k+3 between n and 2n for all n>6.


See also

Chebyshev Bias, Dirichlet's Theorem, Prime Counting Function, Prime Quadratic Effect

Explore with Wolfram|Alpha

References

Derbyshire, J. Prime Obsession: Bernhard Riemann and the Greatest Unsolved Problem in Mathematics. New York: Penguin, p. 96, 2004.Granville, A. and Martin, G. "Prime Number Races." 24 Aug 2004. https://arxiv.org/abs/math/0408319.Shanks, D. Solved and Unsolved Problems in Number Theory, 4th ed. New York: Chelsea, 1993.Sloane, N. J. A. Sequences A073505, A073506, A073508, A091098, A091099, A091115, A091116, A091117, A091119, A091120, A091121, A091122, A091123, A091124, A091125, A091126, A091127, A091128, and A091129 in "The On-Line Encyclopedia of Integer Sequences."

Referenced on Wolfram|Alpha

Modular Prime Counting Function

Cite this as:

Weisstein, Eric W. "Modular Prime Counting Function." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/ModularPrimeCountingFunction.html

Subject classifications