# Discrete Mathematics/Arithmetic Functions

An arithmetic function[1] is a function from the set of positive integers to the set of complex numbers. Examples of important arithmetic functions include:

# Euler totient function

The Euler totient function, ${\displaystyle \phi (n)}$  defined to be the number of positive integers less than and relatively prime to n

${\displaystyle \varphi (n)=n\prod _{p\mid n}\left(1-{\frac {1}{p}}\right),}$

# Mobius function

The Mobius function, ${\displaystyle \mu (n)={\begin{cases}1,&{\mbox{if }}n\;{\mbox{is square free with an even number of prime factors}}\\-1,&{\mbox{if }}n\;{\mbox{is square free with an odd number of prime factors}}\\0&{\mbox{otherwise}}\end{cases}}}$

${\displaystyle e(n)={\begin{cases}1,&{\mbox{if }}n=1\\0,&{\mbox{otherwise}}\end{cases}}}$

# Von Mangoldt function

The Von Mangoldt function, ${\displaystyle \Lambda (n)={\begin{cases}\ln p,&{\mbox{if }}n=p^{k}{\mbox{ for some prime}}p{\mbox{and}}k\geq 1\\0,&{\mbox{otherwise}}\end{cases}}}$

${\displaystyle \sigma _{k}(n)=\sum _{d|n}d^{k}}$

and

${\displaystyle \theta _{k}(n)=n^{k}}$

Many of these functions are multiplicative that is they satisfy a(m)a(n)=a(mn) when m and n are relatively prime. A function that satisfies a(m)a(n)=a(mn) even when m & n are not relatively prime is called completely multiplicative. To define a multiplicative function, a(n), it suffices to only give its values when n is the power of a prime; For a completely multiplicative function, giving its values when n is prime uniquely defines the function.

Given 2 arithmetic functions their Dirichlet convolution is defined by

${\displaystyle (a*b)(n)=\sum _{d|n}a(d)b({\frac {n}{d}})}$

where the sum is taken over the divisors, d, of n. It is easy to show that

${\displaystyle (a*e)(n)=a(n)}$ ,

that is the function e(n) is the identity under Dirichlet convolution. Another basic fact is that Dirichlet convolution is commutative and associative.

It is also straightfoward to show that multiplicative functions form a group under Dirichlet convolution, or in other words, the following properties hold in addition to the fact that e(n) is the identity, and its associativity:

• for any multiplicative function a there is a multiplicative function b such that (a * b) = e

and

• the Dirichlet convolution of 2 multiplicative functions is also multiplicative.

The most important fact about the Von Mangoldt function is that

${\displaystyle \sum _{d|n}\Lambda (n)=\ln n}$ .

The Mobius function's significance comes from the fact that

${\displaystyle \sum _{d|n}\mu (n)=e(n)}$ ,

and thus if ${\displaystyle f(n)=\sum _{d|n}g(d)}$  then ${\displaystyle g(n)=\sum _{d|n}f(d)\mu ({\frac {n}{d}})}$ .