An arithmetical function is a function from the positive integers to a subset of the complex numbers (could be the integers, reals or the complex numbers).

Example 1

Take \(f(n) = n^k\). This function is strictly multiplicative. This means that \(f(mn)=f(m)f(n)\) for all \(m\) and \(n\). This function is also a Dirichlet character.

Example 2

Take \(\lambda(n) = (-1)^{\Omega(n)}\) where \(\Omega(n)\) is the number of prime factors (counted with multiplicities. So \(\Omega(60 = 2^2 \cdot 3 \cdot 5) = 4\)). This function is also called Liouville function. It is strictly multiplicative because \(\Omega(n)\) is also strictly multiplicative. So

$$ \begin{align*} \Omega(mn) = \Omega(m)\Omega(n) \\ \lambda(mn) = \lambda(m)\lambda(n) \end{align*} $$

Multiplicative Functions

The previous examples were strictly multiplicative functions. It turns out that we are okay if a weaker condition. So we define

A multiplicative function is a function such that $$f(mn) = f(m)f(n)$$ if \((m,n) = 1\).

Example 1: The Number of Positive Divisors, \(d(n)\)

Take the divisor function \(d(n)\) which denotes the number of positive divisors of \(n\). If \(n\) is prime, then \(d(p) = 2\). This function is multiplicative so \(f(mn)=f(n)f(m)\) if \(n\) and \(m\) are coprime. For example if \(n = 12\), then \(n\) has 6 positive divisors 1, 2, 3, 4, 6, 12. Notice that \(12 = 3 \cdot 4\). So

$$ \begin{align*} d(12) = d(3 \cdot 4) = d(3)d(4) = 2(3) = 6 \end{align*} $$

In general give the prime factorization \(n = p_1^{n_1}p_2^{n_2}...p_k^{n_k}\), then

$$ \begin{align*} d(n) = (n_1 + 1)(n_2 + 1)...(n_k + 1) \end{align*} $$

For example, If \(n = 12\), then the prime factorization of \(12\) is \(12 = 2^2 \cdot 3\). Then

$$ \begin{align*} d(12) = 3 \cdot 2 = 6 \end{align*} $$

This function is also called \(\sigma_0(n)\).


Example 2: The Sum of Positive Divisors, \(\sigma(n)\)

Another multiplication function that is not strictly multiplicative is \(\sigma(n)\) which is the sum of the divisors of a given integer \(n\). Suppose \(n = 12\). We know the positive divisors are of 12 are \(1, 2, 3, 4, 6, 12\). Then

$$ \begin{align*} \sigma(12) &= 1 + 2 + 3 + 4 + 6 + 12 = 28 \end{align*} $$

There is another way to calculate this. We know the prime factorization of 12 is \(12 = 2^2 \cdot 3\). In fact, each factor of 12 can be written as follows

a b 2a · 3b
001
102
204
013
116
2112

So if we want to sum all the divisors, we want to sum all the combinations of powers in 12’s prime factorization. In fact, suppose the prime factorization of \(n\) is \(n = p_1^{n_1}p_2^{n_2}...p_k^{n_k}\). Then

$$ \sigma(n) = \sum_{a_1 = 0}^{n_1} \sum_{a_2 = 0}^{n_2} \cdots \sum_{a_k = 0}^{n_k} p_1^{a_1} p_2^{a_2} \cdots p_k^{a_k} $$

We can split this sum since each particular sum is over an independent variable from the others so

$$ \sigma(n) = \left( \sum_{a_1 = 0}^{n_1} p_1^{a_1} \right) \left( \sum_{a_2 = 0}^{n_2} p_2^{a_2} \right) \cdots \left( \sum_{a_k = 0}^{n_k} p_k^{a_k} \right) $$

We can then expand each sum and write

$$ \begin{align*} \sigma(n) &= (1 + p_1 + p_1^2 + ...+p_1^{n_1}) \cdot (1 + p_2 + p_2^2 + ...+p_2^{n_2}) \ ... \ (1 + p_k + p_k^2 + ...+p_k^{n_k}) \end{align*} $$

But notice here that each sum is a geometric sum, so we can simplify this further and write

$$ \begin{align*} \sigma(n) &= \left(\frac{p_1^{n_1+1} - 1}{p_1 - 1}\right) \cdot \left(\frac{p_2^{n_2+1} - 1}{p_2 - 1}\right) \cdots \left(\frac{p_k^{n_k+1} - 1}{p_k - 1} \right) \end{align*} $$

Furthermore, if \(n = pq\) where \(p\) and \(q\) are primes then

$$ \begin{align*} \sigma(n) &= (p+1)(q+1) = n + p + q + 1. \end{align*} $$

So for 35, we know that \(35 = 5 \cdot 7\) and we know that 5 and 7 are both prime. Then

$$ \begin{align*} \sigma(35) &= (5+1)(7+1) = 35 + 5 + 7 + 1 = 48. \end{align*} $$

To verify this,

$$ \begin{align*} \sigma(35) &= \left(\frac{7^{1+1} - 1}{7 - 1}\right) \cdot \left(\frac{5^{1+1} - 1}{5 - 1}\right) \\ &= \frac{7^2 - 1}{6} \cdot \frac{25 - 1}{4} \\ &= 8 \cdot 6 = 48. \end{align*} $$

Example 3: Euler's Totient Function, \(\phi(n)\)

Euler’s function counts the number of positive integers \(\leq n\) that are specifically coprime to \(n\). Let’s list the numbers coprime to \(n = 1,2,3,4,5,6\) as follows

$$ \begin{align*} n &= 1: 1 \\ n &= 2: 1 \\ n &= 3: 1, 2 \\ n &= 4: 1, 3 \\ n &= 5: 1,2,3,4 \\ n &= 6: 1,5 \\ \end{align*} $$

Notice, that if \(n\) is prime, then \(\phi(p) = p-1\). We will show later that \(\phi(mn) = \phi(m)\phi(n)\) if \((m,n)=1\).


Example 4: Ramanujan's Function

So far it was easy to see in the previous examples that the function is multiplicative. However, take the function

$$ \begin{align*} q \prod_{n=1}^{\infty} (1 - q^n)^{24} &= q(1-q)^{24}(1-q^2)^{24}(1-q^3)^{24} \cdots \\ &= q - 24q^2 + 252q^3 + 1472q^4 + 4830q^5 - 6048q^6 \\ &= \sum_{n=1}^{\infty} \tau(n) q^n \end{align*} $$

In the above, \(\tau(2)\) is the coefficient of \((1-q^2)^24\) and \(\tau(3)\) is the coefficient of \((1-q^3)^{24}\). So \(\tau(2) = -24\) and \(\tau(3) = 252\). Observe now that

$$ \begin{align*} \tau(2)\tau(3) = -24(252) = - 6048 = \tau(6) \end{align*} $$

This \(\tau\) function is the Ramanujan tau function and Ramanujan observed that the tau function is multiplicative so \(\tau(mn) = \tau(m)\tau(n)\) whenever \(m\) and \(n\) are coprime. This was proved by Mordell. So now what happens if the exponent is greater than 24? the answer is almost always that the function is not multiplicative.


Example 5: The Möbius Function

The Möbius function \(\mu(n)\) is the defined on the positive integers as follows

$$ \begin{align*} \mu(n) = \begin{cases} 0 & \text{if } n \text{ is divisible by a square greater than 1} \\ (-1)^{\omega(n)} & \text{if } n \text{ is divisible by } \omega(n) \text{ primes} \end{cases} \end{align*} $$

The first observation is that this function is multiplicative if \(m\) and \(n\) are coprime. But now, why even define a function like this? Consider the Reiman Zeta function

$$ \begin{align*} \zeta(s) = \frac{1}{1^s} + \frac{1}{2^s} + \frac{1}{3^s} + \cdots = \sum_{n=1}^\infty \frac{1}{n^s} \end{align*} $$

Now consider

$$ \begin{align*} \frac{1}{\zeta(s)} = \frac{1}{1^s} + \frac{\mu(2)}{2^s} + \frac{\mu(3)}{3^s} + \cdots \end{align*} $$

So the Möbius function turns up in the coefficients of the inverse of the Reiman Zeta function and since the Reiman Zeta function is the most important and mysterious function in number theory, then we do care about the Möbius function.


Applications of Multiplicative Functions: Perfect Numbers

Define a perfect number as follows

A perfect number is a number that is the sum of its proper divisors.

For example \(6 = 1 + 2 + 3\) and \(28 = 1 + 2 + 4 + 7 + 14\) are perfect numbers. Recall that the \(\sigma(n)\) is the sum of all divisors of \(n\) including \(n\) itself while a perfect number doesn’t include \(n\) itself. So what we are looking for is any \(n\) such that \(\sigma(n) = 2n\). Recall that we can compute \(\sigma(n)\) as follows

$$ \begin{align*} \sigma(n) = (1 + p_1 + p_1^2 + \cdots + p_1^{n_1}) \cdot (1 + p_2 + p_2^2 + \cdots + p_2^{n_2}) \cdots (1 + p_k + p_k^k + \cdots + p_k^{n_k}) \end{align*} $$

However, Euclid identified numbers that are in fact perfect numbers. If you let \(p\) be a prime, then the number

$$ \begin{align*} 2^{p-1}(2^p - 1) \end{align*} $$

is a perfect number. To show that \(2^{p-1}(2^p - 1)\) is indeed a perfect number, we want to show that

$$ \begin{align*} \sigma(2^{p-1}(2^p - 1)) = 2(2^{p-1}(2^p - 1)) = 2^p(2^p - 1) \end{align*} $$

To do this, we calculate \(\sigma(2^{p-1}(2^p - 1))\). Recall that \(2^p - 1\) is prime when \(p\) is prime so

$$ \begin{align*} \sigma(2^{p-1}(2^p - 1)) &= \sigma(2^{p-1})\sigma(2^p - 1) \quad \text{($\sigma$ is multiplicative and $2^{p-1}$ is prime)} \\ &= (1 + 2 + 4 + ... 2^{p-1}) (2^p-1 + 1) \\ &= \frac{2^p - 1}{2 - 1} (2^p) \\ &= 2^p (2^p -1). \end{align*} $$

So \(n\) is is a perfect number. When \(p = 2\), this gives us 6 and when \(p = 3\), this gives us the perfect number 28.


Even Perfect Number

Euler argued that any even perfect number should have the form

$$ \begin{align*} n = 2^a p^b q^c \end{align*} $$

where \(p\) and \(q\) are odd primes. The divisors of \(n\) are

$$ \begin{align*} \{1, 2, 4, \cdots 2^a\} \times \{1, p, p^2, \cdots, p^b\} \times \{1, q, q^2, \cdots q^c\} \end{align*} $$

So now, let’s take the divisors of the form \(p^{b-1}\) or \(p^b\) from \(\{1, p, p^2, \cdots, p^b\}\) and let’s only take \(q^c\) from \(\{1, q, q^2, \cdots q^c\}\).

The sum of these special divisors will be

$$ \begin{align*} \sum_{i=0}^a \sum_{j=b-1}^b 2^a p^b q^c &= \left( \sum_{i=0}^a 2^a \right) \cdot (p^{b-1} + p^b) \cdot q^c \\ &= (1 + 2 + 4 + ... + 2^a) \cdot (p^{b-1} + p^b) \cdot q^c \\ &= (2^{a+1} - 1) \cdot (p+1)p^{b-1} \cdot q^c \\ &= (2^{a+1} - 1) \cdot (p^b + p^{b-1}) \cdot q^c \\ &= (2^{a+1}p^b + 2^{a+1}p^{b-1} - p^b - p^{b-1}) \cdot q^c \\ &= 2^{a+1}p^bq^c + 2^{a+1}p^{b-1}q^c - p^bq^c - p^{b-1}q^c \\ &= 2n + 2^{a+1}p^{b-1}q^c - p^bq^c - p^{b-1}q^c \\ &= 2n \cdot \left( 1 + \frac{1}{p} - \frac{1}{2^{a+1}} - \frac{1}{2^{a+1}p} \right) \\ &= 2n \cdot \left( \left( 1 - \frac{1}{2^{a+1}} \right) + \left( \frac{1}{p} - \frac{1}{2^{a+1}p} \right) \right) \\ &= 2n \cdot \left( \left( \frac{2^{a+1} - 1}{2^{a+1}} \right) + \left( \frac{2^{a+1} - 1}{2^{a+1}p} \right) \right) \\ &= 2n \cdot \left( \left( \frac{2^{a+1} - 1}{2^{a+1}} \right) \cdot \left( 1 + \frac{1}{p} \right) \right) \\ &= 2n \cdot \left( \frac{2^{a+1} - 1}{2^{a+1}} \right) \cdot \left(1 + \frac{1}{p} \right) \\ &= 2n \cdot \left(1 - \frac{1}{2^{a+1}} \right) \cdot \left(1 + \frac{1}{p} \right) \end{align*} $$

So now the observation is that this is a perfect number so the sum of all the divisors must be \(2n\) and since we’re adding a subset of the divisors and we already see a \(2n\) term, then this extra term \(\left(1 - \frac{1}{2^{a+1}} \right) \cdot \left(1 + \frac{1}{p} \right)\) must at most be 1. On the other hand, we notice that the product \((1 + 2 + 4 + ... + 2^a) = 2^{a+1} - 1\) is odd and must be divisible by one of the prime factors of \(n\) [WHY?? TODO]. So suppose that \(p\) is the smallest prime factor of \(n\), then \(p \leq 2^{a+1} - 1\). But this makes the product \((1 + \frac{1}{p})\) be greater than or equal to 1. But this is impossible since we said it must be at most 1. Therefore, it has to be exactly 1.

But if it’s exactly 1, then this means that \(2n = (1 + 2 + 4 + ... + 2^a) \cdot (p^{b-1} + p^b) \cdot q^c\). But this implies that we can’t have any other divisors. So \(c\) must be zero and \(b\) must be 1. This means that \(p = 2^{a+1} - 1\). Therefore, we end up with the same form from before

$$ \begin{align*} 2^a \cdot (2^{a+1} - 1) \end{align*} $$

In other words, it’s a Mersenne prime. So now based on this, are there infinite even perfect numbers? well since they are Mersenne primes, then it’s a question of whether we have infinite number of Mersenne primes. We don’t know the answer to this question. At the moment, the largest one found is \(2^{2136,279,841} - 1\).


Odd Perfect Number

Another question we can ask is are there any odd perfect numbers? nobody knows. But, we can have more restrictive conditions on odd perfect numbers. So let \(n = p_1^{n_1}...p_1^{n_k}\) be an odd perfect number. Then

$$ \begin{align*} \sigma(n) &= (1 + p_1 + \cdots + p_1^{n_1}) \cdot (1 + p_2 + \cdots + p_2^{n_2}) \ \cdots \ (1 + p_k + \cdots + p_k^{n_k}) \end{align*} $$

We know that \(\sigma(n) = 2n\). So if \(n\) is odd, then \(2n\) is also odd. But this means that exactly one terms above must be even. The term \((1 + p + p^2 + \cdots + p^{n_1})\) is odd if and only if \(n_1\) is even. So exactly one \(n_i\) (of the \(k\) powers) must be odd. So \(n\) can be written as a square times a prime number. We can push this further but then we can never arrive at contradiction and we never know if they really exist. This is a very old open problem.


Landau's Problem

One more problem that is easy to state but we don’t know how to answer. First, the Goldbach Conjecture which states that every even integer greater than 4 can be written as the sum of two prime numbers. \(2n = p_1 + p_2\).

The next is the Twin Prime Conjecture which states that there are infinitely many primes with difference two? so \(p_1 - p_2 = 2\).

The third one is given an \(n\), can we find a prime such that \(n^2 < p < (n+1)^2\).

Can we find infinitely many primes of the form \(p = n^2 + 1\)?


References