In analytic number theory and related branches of mathematics, a complex-valued arithmetic function   :\mathbb {Z} \rightarrow \mathbb {C} }
  
 is a Dirichlet character of modulus
 is a Dirichlet character of modulus  (where
 (where  is a positive integer) if for all integers
 is a positive integer) if for all integers  and
 and  :
:
 that is, that is, is completely multiplicative. is completely multiplicative.
 (gcd is the greatest common divisor) (gcd is the greatest common divisor)
 ; that is, ; that is, is periodic with period is periodic with period . .
The simplest possible character, called the principal character, usually denoted  , (see Notation below) exists for all moduli:
, (see Notation below) exists for all moduli:
 
The German mathematician Peter Gustav Lejeune Dirichlet—for whom the character is named—introduced these functions in his 1837 paper on primes in arithmetic progressions.