Dirichlet \(L\)-functions refresher¶
Dirichlet characters package congruence information; Dirichlet \(L\)-functions turn that into analytic objects whose zeros control prime distribution in residue classes.
Core definitions¶
Let \(\chi\) be a Dirichlet character modulo \(q\). The Dirichlet \(L\)-function is
For \(\Re(s)>1\), it has an Euler product:
For the principal character:
The decisive analytic fact (used in Dirichlet’s theorem) is:
What experiments usually visualize or measure¶
Convergence of partial sums \(\sum_{n\le N}\chi(n)n^{-s}\) for various \(s\).
Convergence of partial Euler products over primes.
Sensitivity near \(s=1\) (slow convergence) and how to stabilize it.
Practical numerical caveats¶
Near \(s=1\), both series and Euler products converge painfully slowly.
For Euler products, compute via logs:
to reduce catastrophic multiplication error.\[ \log L(s,\chi) \approx -\sum_{p\le P}\log\left(1-\chi(p)p^{-s}\right) \]If you compare characters, always keep the same prime cutoff \(P\) to make plots comparable.
References¶
See References.
[Davenport, 2000, Lejeune Dirichlet, 1837, Serre, 1973, Washington, 1997]
Experiments in this repository¶
E110 — Dirichlet L-series partial sums at s=1 and s=1/2 (principal vs nonprincipal).
E111 — Euler product vs Dirichlet series truncations for L(s,χ): error vs cutoff.