Let { a ( n ) } {\displaystyle \{a(n)\}} be an arithmetic function, and let
be the corresponding Dirichlet series. Presume the Dirichlet series to be uniformly convergent for ℜ ( s ) > σ {\displaystyle \Re (s)>\sigma } . Then Perron's formula is
Here, the prime on the summation indicates that the last term of the sum must be multiplied by 1/2 when x is an integer. The integral is not a convergent Lebesgue integral; it is understood as the Cauchy principal value. The formula requires that c > 0, c > σ, and x > 0.
An easy sketch of the proof comes from taking Abel's sum formula
This is nothing but a Laplace transform under the variable change x = e t . {\displaystyle x=e^{t}.} Inverting it one gets Perron's formula.
Because of its general relationship to Dirichlet series, the formula is commonly applied to many number-theoretic sums. Thus, for example, one has the famous integral representation for the Riemann zeta function:
and a similar formula for Dirichlet L-functions:
where
and χ ( n ) {\displaystyle \chi (n)} is a Dirichlet character. Other examples appear in the articles on the Mertens function and the von Mangoldt function.
Perron's formula is just a special case of the formula
and
the Mellin transform. The Perron formula is just the special case of the test function f ( 1 / x ) = θ ( x − 1 ) , {\displaystyle f(1/x)=\theta (x-1),} for θ ( x ) {\displaystyle \theta (x)} the Heaviside step function.