In number theory, an arithmetic function (or number-theoretic function) f(n) is a function defined for all positive integers and having values in the complex numbers. In other words: an arithmetic function is nothing but a sequence of complex numbers.
Arithmetic functions may be studied with Bell series.
Examples
The articles on additive and multiplicative functions contain several examples of arithmetic functions. Here are some examples that are neither additive nor multiplicative:
c4(n) - the number of ways that n can be expressed as the sum of four squares of nonnegative integers, where we distinguish between different orders of the summands. For example:
P(n), the Partition function _ the number of representations of n as a sum of positive integers, where we don't distinguish between different orders of the summands. For instance: P(2 · 5) = P(10) = 42 and P(2)P(5) = 2 · 7 = 14 ≠ 42.
π (n), the Prime counting function - the number of primes less than or equal to a given number n. We have π(1) = 0 and π(10) = 4 (the primes below 10 being 2, 3, 5, and 7).
The situation appears to be much rosier for "fixated points" of arithmeticalfunctions.
For simplicity, an arithmeticalfunction in this discussion refers to a function having domain and range which are sets of integers.
One such function is given by f(n) = Prime(n), the n-th prime, which has a rate of growth with respect to n that is approximately equal to ln(n) (the natural logarithm of n).