Preprint
Article

This version is not peer-reviewed.

The Explicit Formula for the Chebyshev–Von Mangoldt Function and the Prime Representing Constant

Submitted:

09 February 2026

Posted:

10 February 2026

You are already at the latest version

Abstract
The Prime Representing Constant infinitely generates prime numbers. We discovered how to compute the Prime Representing Constant using the Hadamard product expansion. We also modified the classical Riemann–von Mangoldt explicit formula. While mathematically equivalent to the classical formula, the cosine-phase form is novel in its computational and structural presentation, enabling faster, memory efficient, and intuitive computation of ψ(x). Combining all the properties will give us a trace-type oscillatory operator that infinitely generates prime numbers.
Keywords: 
;  ;  ;  ;  ;  ;  

1. Introduction

The Euler product formula can be used to calculate the asymptotic probability that s randomly selected integers are set-wise coprime. The asymptotic probability that s numbers are coprime is given by a product over all primes,
p p r i m e 1 1 p s = 1 ζ ( s )
Bernhard Riemann’s 1859 article "On the Number of Primes Less Than a Given Magnitude" [1] extended the Euler definition to a complex variable, proved its meromorphic continuation and functional equation, and established a relation between its zeros and the distribution of prime numbers.
The classical Riemann–von Mangoldt explicit formula for the Chebyshev function ψ ( x ) is [2]
ψ ( x ) = x ρ x ρ ρ log ( 2 π ) 1 2 log ( 1 x 2 ) ,
where the sum runs over all nontrivial zeros ρ of the Riemann zeta function.

2. Method

Assuming the Riemann Hypothesis ( ρ = 1 2 ± i γ ) and pairing conjugate zeros:
ρ x ρ ρ = γ > 0 x 1 / 2 + i γ 1 / 2 + i γ + x 1 / 2 i γ 1 / 2 i γ
= 2 γ > 0 x 1 / 2 + i γ 1 / 2 + i γ .
Using polar form:
x 1 / 2 + i γ 1 / 2 + i γ = x 1 / 2 1 / 4 + γ 2 cos γ ln x θ γ , θ γ = arctan ( 2 γ ) ,
so that the sum becomes a real cosine series.
ψ ( x ) x = x 1 / 2 γ > 0 2 cos γ ln x arctan ( 2 γ ) 1 4 + γ 2 log ( 2 π ) 1 2 log 1 x 2
1 4 + γ 2 = 1 + 4 γ 2 4 = 1 + 4 γ 2 2 = 1 2 1 + 4 γ 2
ψ ( x ) x = x 1 / 2 γ > 0 2 cos γ ln x arctan ( 2 γ ) 1 2 1 + 4 γ 2 log ( 2 π ) 1 2 log 1 x 2
ψ ( x ) x = x 1 / 2 γ > 0 4 cos ( γ ln x θ γ ) 1 + 4 γ 2 log ( 2 π ) 1 2 log ( 1 x 2 ) , θ γ = arctan ( 2 γ )

2.1. Main Benefits of the Cosine-Phase Formula

1.
Fully real arithmetic:
  • Uses only real numbers and cosines.
  • Avoids complex exponentials and divisions.
  • Reduces CPU operations per zero, giving 4 × speedup for small-to-medium zero sets.
2.
Explicit oscillatory structure:
  • Each zero contributes a real cosine wave with amplitude 4 / 1 + 4 γ 2 and phase θ γ = arctan ( 2 γ ) .
  • Makes interference patterns explicit.
  • Ideal for visualization, peak detection, and oscillation analysis.
3.
Improved numerical computation:
  • Pairing zeros ensures real output.
  • Term magnitudes O ( x 1 / 2 / γ ) give natural truncation and error estimation.
  • Compatible with Kahan or compensated summation for cancellation.
4.
Lower memory usage:
  • Stores only 1 real per zero instead of 2 for complex numbers.
  • Improves cache efficiency, enabling larger zero sets in RAM.
5.
Vectorization-friendly:
  • Cosines and multiplications can be fully vectorized (SIMD, GPU, multi-core).
  • Simpler to implement in high-performance numerical libraries.
6.
Visualization and peak analysis:
  • Peaks correspond to constructive interference of zeros.
  • Directly interpretable, unlike the classical complex sum.
Feature Classical Formula Cosine-Phase Formula
Arithmetic type Complex Real only
Oscillatory structure Hidden in complex plane Explicit cosine waves
Numerical speed Moderate Faster ( 4 × )
Memory usage Higher Lower
Vectorization Possible Easier
Peak detection Hard Easy and intuitive
Error control Requires complex analysis Natural truncation bounds via amplitudes

2.2. Amplitude and Phase

Each zero γ contributes with amplitude
A γ = 4 1 + 4 γ 2
and phase
θ γ = arctan ( 2 γ ) ,
making the effect of individual zeros transparent. Each term in the classical explicit formula has the form:
x ρ ρ = x 1 / 2 + i γ 1 / 2 + i γ .
Writing 1 / 2 + i γ in polar form:
1 / 2 + i γ = ( 1 / 2 ) 2 + γ 2 magnitude e i arctan ( 2 γ ) phase .
The magnitude 1 / 4 + γ 2 contributes to the amplitude in the cosine sum. The phase arg ( 1 / 2 + i γ ) = arctan ( 2 γ ) shifts the argument of the cosine.
Rotation angle : γ ln x arctan ( 2 γ ) .
The phase arctan ( 2 γ ) aligns the vector correctly so that the sum of all vectors reproduces ψ ( x ) x accurately. Without this phase shift, the oscillations would be misaligned and the formula would be incorrect.
The main uses of arctan ( 2 γ ) are:
  • Phase correction: aligns each zero’s contribution in the cosine sum.
  • Correct interference: ensures the sum over zeros reproduces the oscillatory behavior of ψ ( x ) x .
  • Magnitude-phase decomposition: represents the argument of 1 / 2 + i γ in polar form.
    Without phase shift arctan ( 2 γ ) the vectors misaligned, strong cancellations and slower convergence. The prime contributions are misrepresented or even completely destroyed.

2.3. Prime Representing Constant

The sequence 2, 3, 2, 3, 2, 5, 2,.., is a sequence of smallest primes that do not divide n. The probability of P k is the smallest prime that does not divide n, for some natural number can be written as[3]:
P ( P k does not divide n and P 1 , P 2 , . . . , P k 1 divide n ) = 1 1 P k i = 1 k 1 ( 1 P i )
We can prove arctan ( 2 γ ) infinitely by the Prime Representing Constant. The constant of the phase shift is 2. The probability of 2 is the smallest prime that does not divide equals to 1/2.
k = 1 1 1 P k i = 1 k 1 1 P i = k = 1 i = 1 k 1 P i i = 1 k 1 1 P i
This is a telescoping sum:
= 1 1 P 1 + 1 P 1 1 P 1 P 2 + . . .
= 1 + i = 1 1 P i
i = 1 1 P i , tends to 0
= 1 + 0
= 1
if k = 1, then P 1 = 2
1 1 P 1 i = 1 1 1 1 P i
1 1 2 i = 1 0 1 P i = 1 / 2
1 1 2 = 1 / 2
Then ,
k = 2 1 1 P k i = 1 k 1 1 P i = 1 / 2
k = 1 1 1 P k i = 1 k 1 1 P i = 1 / 2 + 1 / 2 = 1
The smallest prime that does not divide P 2 up to P is 2. The probability of 2 is the smallest prime that does not divide n is 1/2. The sum of the probabilities of P 2 up to P is the smallest prime that does not divide n is also 1/2.
In the paper Prime Representing Constant in the Critical Strip shows the relation of the Prime Representing Constant to the Riemann zeta function. It also introduce a new identity of the Prime Representing Constant [4]. If we divide Prime Representing into 2.
k = 1 P k 1 i = 1 k 1 P i = 2.920050977316 . . .
k = 1 P k 1 i = 1 k 1 P i = 1.460025488658 . . . + 1.460025488658 . . .

3. Result

Summing over the n non-trivial zeros yields
i = 1 n Re ( x ρ i ) x 1 / 2 = i = 1 n cos ( γ i ln x ) .
In the explicit formula for prime-counting functions (like ψ ( x ) or π ( x ) ), these contributions appear with a minus sign:
ψ ( x ) x = ρ x ρ ρ log ( 2 π ) i = 1 n cos ( γ i ln x ) .
The minus sign is essential to accurately reflect the direction of the correction in the distribution of primes.
i = 1 n cos ( γ i ln x ) ,
which represents the oscillatory correction to the smooth main term caused by the first n non-trivial zeros of ζ ( s ) . This expression represents waves whose frequencies are given by the imaginary parts of the nontrivial zeros. The oscillations occur in the logarithmic variable ln x and form the oscillatory component appearing in explicit formulas relating nontrivial zeros to the distribution of prime numbers.
If we change the sign, then
k = 1 P k 1 i = 1 k 1 P i = 1.460025488658 . . . 1.460025488658 . . .
1.460025488658 . . . = ζ ( 0.4999161 . . . )
Hadamard gave the infinite product expansion [5]
ζ ( s ) = e log ( 2 π ) 1 γ 2 s 2 ( s 1 ) Γ ( 1 + s 2 ) ρ 1 s ρ e s ρ
ζ ( 0 . 4999161 . . . ) = e log ( 2 π ) 1 γ 2 0.4999161 . . . 2 ( 0.4999161 . . . 1 ) Γ ( 1 + 0.4999161 . . . 2 ) ρ 1 0.4999161 . . . ρ e 0.4999161 . . . ρ
ρ 1 0.4999161 . . . ρ e 0.4999161 . . . ρ = 1.005 . . .
ζ ( 0 . 4999161 . . . ) = 1.315989 . . . 0.9065632 . . . 1.005 . . .
ζ ( 0 . 4999161 . . . ) = 1.460025488658 . . .
2 ζ ( s ) = e log ( 2 π ) 1 γ 2 s ( s 1 ) Γ ( 1 + s 2 ) ρ 1 s ρ e s ρ
2 ζ ( 0 . 4999161 . . . ) = e log ( 2 π ) 1 γ 2 0.4999161 . . . ( 0.4999161 . . . 1 ) Γ ( 1 + 0.4999161 . . . 2 ) ρ 1 0.4999161 . . . ρ e 0.4999161 . . . ρ
2 ζ ( 0 . 4999161 . . . ) = 2.920050977316 . . .
This solution proves that the Prime Representing Constant can be computed using the product of nontrivial zeros of the Riemann zeta function.

4. Discussion

The cosine-phase formula offers several advantages over the classical explicit formula. It is a fully real, explicit oscillatory structure, improved numerical computation, lower memory usage, vectorized, systematic visualization, and peak analysis. We can prove it using the Prime Representing Constant.
The probability of P k is the smallest prime that does not divide n, for some natural number can be written as:
P ( P k does not divide n and P 1 , P 2 , . . . , P k 1 divide n ) = 1 1 P k i = 1 k 1 ( 1 P i )
The average of this equation give us the Prime Representing Constant.
k = 1 P k 1 i = 1 k 1 P i = 2.920050977316 . . .
k = 1 P k 1 i = 1 k 1 P i = 1.460025488658 . . . 1.460025488658 . . .
k = 1 P k 1 i = 1 k 1 P i = ζ ( 0.4999161 . . . ) + ζ ( 0.4999161 . . . )
0.4999161 . . . + 0.4999161 . . . 1
k = 1 1 1 P k i = 1 k 1 1 P i = k = 1 i = 1 k 1 P i i = 1 k 1 1 P i = 1
This is a telescoping sum.
k = 1 1 1 P k i = 1 k 1 1 P i = 1 / 2 + 1 / 2 = 1
The smallest prime that does not divide P 2 up to P is 2. The probability of 2 is the smallest prime that does not divide n is 1/2. The sum of the probabilities of P 2 up to P is the smallest prime that does not divide n, which is also 1/2. The sum of 1/2 and 1/2 equals 1.
We infinitely prove the probability that the sum of the P k is the smallest prime that does not divide n is equal to 1. We also infinitely prove the value of the Prime Representing Constant because the value of the Prime Representing Constant is based on the value of the probability of P k , which is the smallest prime that does not divide n. The Prime Representing Constant divided by 2 and changing the sign to negative will give us
1.460025488658 . . . = ζ ( 0.4999161 . . . )
We can verify it on any formula for the Riemann zeta function. Especially the Hadamard product expansion formula, which uses the product of the nontrivial zeros. Using the formula presented below and substituting s = 0.4999161... the result is equal to the value of the Prime Representing Constant.
2 ζ ( s ) = e log ( 2 π ) 1 γ 2 s ( s 1 ) Γ ( 1 + s 2 ) ρ 1 s ρ e s ρ
There exists a linear oscillatory operator T whose distributional trace reproduces the cosine-phase explicit formula for ψ ( x ) . The operator encodes prime powers through its trace, and its normalization is fixed by the Prime Representing Constant. The Prime Representing Constant infinitely generates prime numbers and reconstructs the prime counting function.

Acknowledgments

The authors are grateful to Angeles Bulanhagui, and Heart Bulanhagui.

References

  1. Riemann, Bernhard. Ueber die Anzahl der Primzahlen unter einer gegebenen Grösse; 1859. [Google Scholar]
  2. von Mangoldt, H. Zu Riemanns Abhandlung “Über die Anzahl der Primzahlen unter einer gegebenen Größe”. Journal für die reine und angewandte Mathematik 1895, 114, 255–305. [Google Scholar]
  3. Fridman, Dylan; Garbulsky, Juli; Glecer, Bruno; Grime, James; Florentin, Massi Tron. A prime-representing constant. The American Mathematical Monthly 2019, 126(1), 70–73. [Google Scholar] [CrossRef]
  4. Bulanhagui, R. Prime Representing Constant in the Critical Strip. Preprints 2025, 2025101343. [Google Scholar] [CrossRef]
  5. Titchmarsh, Edward Charles; Heath-Brown, David Rodney. The theory of the Riemann zeta-function; Oxford university press, 1986. [Google Scholar]
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

© 2026 MDPI (Basel, Switzerland) unless otherwise stated