Dirichlet L-function (source code)

= Dirichlet L-function
{c}
{title2=$L(s,\chi)$}
{wiki}

For a <Dirichlet character> $\chi$ modulo $q$, its <Dirichlet L-function> is initially defined on the <half-plane> $\operatorname{Re}s>1$ by
$$
L(s,\chi)=\sum_{n\ge1}\frac{\chi(n)}{n^s}.
$$
Since $|\chi(n)|\le1$, this <series> converges absolutely by comparison with $\sum_n n^{-\operatorname{Re}s}$.

A <Dirichlet character> is a <completely multiplicative function>. The <fundamental theorem of arithmetic> therefore reorganizes the absolutely convergent <series> into an <Euler product>:
$$
L(s,\chi)=\prod_{p\text{ prime}}(1-\chi(p)p^{-s})^{-1}.
$$
Expanding each factor as a <geometric series> assigns exactly one term to every positive <integer>. For the <principal Dirichlet character> $\chi_0$, the factors at <primes> dividing $q$ disappear, giving $L(s,\chi_0)=\zeta(s)\prod_{p\mid q}(1-p^{-s})$, where $\zeta$ is the <Riemann zeta function>.