# Dirichlet character

A Dirichlet character $\chi$ is a periodic multiplicative function from the positive integers to the real numbers. In mathematical notation we would say that a Dirichlet character is a function $\chi: \mathbb{Z} \to \mathbb{R}$ such that

1. $\chi(n + q) = \chi(n)$ for all positive integers $n$ and some integer q, and 2. $\chi(mn) = \chi(m)\chi(n)$ for all positive integers $m$ and $n$.

The smallest such $q$ for which property 1 holds is known as the period of $\chi$. Typically we impose the additional restriction that $\chi(n) = 0$ for all integers $n$ such that $\gcd(n, q) = 0$ where $q$ is the period of $\chi$; with this restriction there are exactly $\phi(q)$ such characters.

The Dirichlet characters with period $q$ have been completely classified. They are very useful in number theory.