Dirichlet character (source code)

= Dirichlet character
{c}
{wiki}

A <Dirichlet character> modulo $m$ is a <homomorphism> $(\mathbb Z/m\mathbb Z)^\times\to\mathbb C^\times$, extended periodically to <integers> by zero on numbers not coprime to $m$.