This is written during the flight from Hong Kong to Frankfurt.
In the previous articles, we investigate the number of ways to express integers as a sum of two squares, so one would naturally ask how frequently are integers expressible as a sum of two squares. In other words, we hope to investigate the asymptotic behavior of the following function:
N(x)=n≤x∃a,b∈Z s.t. n=a2+b2∑1=n≤xr(n)>0∑1.(1)
By the definition of r(n), we see that the Dirichlet series associated with N(x) can be expressed as a product of primes as follows
Typically, we hope to associate F(s) with ζ(s) or L(s,χ) as in the previous article so that we perform contour integration tricks on the estimation of N(x).
Obviously, we see that the last product converges absolutely on ℜ(s)>21. In order to obtain bounds for F(s) helpful for contour integration, we need to take a detour to logζ(s) and logL(s,χ4).
De la Vallée Poussin's region
Although logarithm is multi-valued, logζ(s) and logL(s,χ4) are well-defined whenever s lies in their zero-free region within the right half plane. In fact, de la Vallée Poussin had proven in 1896 that
There exists a constant c>0 such that ζ(s) and L(s,χ4) are free of zeros in
σ≥max(21+δ,1−logτc),τ=max(∣t∣,4).(3)
In 1913, Gronwall showed that when s lies in the region described by (3), the following estimate
∣logζ(s)∣≤loglogτ+O(1).(4)
is valid when s is away from 1. As shown in Montgomery & Vaughan's Multiplicative Number Theory I: Classical theory, (4) is also valid when ζ(s) is replaced by L(s,χ4), which indicates that whenever s lies in the same region as (3), F(s) satisfies
The bound (5) is sufficient for us to estimate contour integrals over F(s) along line segments lying within (3). Therefore, let's bring in Perron's formula.
Contour integration and error estimates
Using Perron's formula, we see that whenever a=1+(logx)−1 and 4≤T≤x there is
N(x)=2πi1∫a−iTa+iTF(s)sxsds+O(Txlogx)(6)
Because F(s) behaves like (s−1)−1/2 when s approaches one, we cannot handle the integral via residue theorem. Instead, we deform the path [a−iT,a+iT] into
where k=c(logT)−1 and C denote some path that begins from 1−k−iε, surrounds s=1 counter-clockwise, and finally goes to 1−k+iε. For integrals other than C, plugging (5) in gives
Setting logT=logx and combining (6), (7), and (8), we see that there exists some c0>0 such that
N(x)=2πixI∫CF(s)sxs−1dx+O(xe−c0logx).(9)
Thus, the remaining task is to compute the integral along the path C, which presumably becomes the main term of N(x).
The main term of N(x)
Let C1 denote the path C shifted one unit to the left. Then we have
I=∫C1u−1/2xuh(u+1)du,
where it is evident that h(u+1)=u1/2F(u+1)/(u+1) is obivously analytic in and on C. To calculate I further, we deform C1 into a truncated Hankel contour:
I=∫e−iπk−iε−iε+∫γ+∫iεeπisk+iε,(10)
where γ denotes a counterclockwise arc connecting −iε and iε, so letting ε→0+, (10) becomes
I=(eπi/2−e−πi/2)∫0kv−1/2x−vh(1−v)dv.(11)
Due to the analyticity of h(1−v) near v=0, we see that it admits an asymptotic expansion:
This suggests that the main term of N(x) is in fact expressed as some asymptotic series. Plugging (12) back into (9), we conclude that there exists a sequence bn=anΓ(n+21)/π such that
where K=a0/π is called the Landau-Ramanujan constant. This indicates that the density of integers expressible as a sum of two squares is zero, but these types of integers are not so rare as primes (PNT gives ∼x/logx). In the remaining part of this article, we develop analytical expressions for K.
The value of Landau-Ramanujan constant
By definition, we know that a0=h(1) is exactly the limit of (s−1)1/2F(s) as s→1, which means
a0=2L(1,χ4)p≡3(4)∏(1−p21)−1/2,
so it follows from the fact that L(1,χ4)=π/4 there is
In this article, we investigated the distribution of numbers that are a sum of two squares using the contour integration method. However, the case we study today is fundamentally different from those we have researched in the past.
Instead of calculating a residue integral as in the past, we see that the main term of N(x) is obtained by calculating a certain integral over a truncated Hankel contour.
Notes
In this article, the analytic continuation of F(s) is achieved by factoring a square root of ζ(s). In the 1950s, mathematicians Selberg and Delange developed ambitious generalizations of the method mentioned in this article. Particularly, they show that if there exists some complex z such that [ζ(s)]−zF(s) is analytic and O(τ1−δ) in the region described in (3), then there exists a sequence ℓn such that the summatory function of the coefficients of F(s) is asymptotic to
∼x(logx)z−1{ℓ0+logxℓ1+log2xℓ2+log3xℓ3}.
For a detailed account of this result, consult §II.5.3 of Tenenbaum's Introduction to Analytic and Probabilistic Number Theory.