Skip to content

Average Orders of Arithmetic Functions

Arithmetic functions often fluctuate strongly from one integer to the next.

Irregular Arithmetic Functions

Arithmetic functions often fluctuate strongly from one integer to the next.

For example,

τ(p)=2 \tau(p)=2

for every prime pp, while

τ(360)=24. \tau(360)=24.

Similarly,

φ(p)=p1 \varphi(p)=p-1

for primes, but

φ(2k)=2k1. \varphi(2^k)=2^{k-1}.

Because of this irregular behavior, exact formulas for individual integers are often difficult to analyze globally.

Instead of studying precise values, number theory frequently studies average behavior.

Average Order

Let f(n)f(n) be an arithmetic function. An average order of ff is a simpler function g(n)g(n) such that the sums

nxf(n) \sum_{n\le x} f(n)

behave approximately like

nxg(n) \sum_{n\le x} g(n)

for large xx.

Informally, g(n)g(n) describes the typical size of f(n)f(n).

This viewpoint shifts attention from local fluctuations to large-scale statistical behavior.

Average Order of the Divisor Function

The divisor-counting function satisfies

τ(n)=dn1. \tau(n)=\sum_{d\mid n}1.

One can show that

nxτ(n)=xlogx+(2γ1)x+O(x), \sum_{n\le x}\tau(n) = x\log x+(2\gamma-1)x+O(\sqrt{x}),

where γ\gamma is Euler’s constant.

Thus the average size of τ(n)\tau(n) is roughly

logn. \log n.

Although τ(n)\tau(n) varies considerably, a typical integer near nn has about logn\log n divisors on average.

Hyperbola Method

A classical way to estimate divisor sums is the Dirichlet hyperbola method.

Since

τ(n)=dn1, \tau(n)=\sum_{d\mid n}1,

we have

nxτ(n)=nxdn1. \sum_{n\le x}\tau(n) = \sum_{n\le x}\sum_{d\mid n}1.

Reversing the order of summation,

=dxxd. = \sum_{d\le x}\left\lfloor\frac{x}{d}\right\rfloor.

Geometrically, this counts lattice points under the hyperbola

mnx. mn\le x.

Approximating

xdxd, \left\lfloor\frac{x}{d}\right\rfloor \approx \frac{x}{d},

one obtains

nxτ(n)xdx1d. \sum_{n\le x}\tau(n) \approx x\sum_{d\le x}\frac1d.

Since the harmonic sum behaves like

logx, \log x,

the main term becomes

xlogx. x\log x.

This explains heuristically why the average order of τ(n)\tau(n) is logarithmic.

Average Order of the Totient Function

Euler’s totient function also has a predictable average size.

One can prove

nxφ(n)3π2x2. \sum_{n\le x}\varphi(n) \sim \frac{3}{\pi^2}x^2.

Dividing by xx, the average size of φ(n)\varphi(n) near nn is approximately

6π2n. \frac{6}{\pi^2}n.

The constant

6π2 \frac{6}{\pi^2}

appears because it equals the probability that two randomly chosen integers are coprime.

Thus a typical integer nn has about

6π2n \frac{6}{\pi^2}n

invertible residue classes modulo nn.

Average Order of σ(n)\sigma(n)

The divisor-sum function satisfies

σ(n)=dnd. \sigma(n)=\sum_{d\mid n} d.

Its average order is quadratic in size:

nxσ(n)π212x2. \sum_{n\le x}\sigma(n) \sim \frac{\pi^2}{12}x^2.

Hence the average size of σ(n)\sigma(n) near nn is approximately

π26n. \frac{\pi^2}{6}n.

This reflects the fact that the average sum of divisors grows proportionally to the integer itself.

Mean Values

The mean value of an arithmetic function ff is often defined as

1xnxf(n). \frac1x\sum_{n\le x}f(n).

If this quantity approaches a limit as

x, x\to\infty,

that limit describes the long-term average behavior of ff.

For example, one can show that

1xnxφ(n)n6π2. \frac1x\sum_{n\le x}\frac{\varphi(n)}{n} \to \frac6{\pi^2}.

Thus the average proportion of integers coprime to nn is

6/π2. 6/\pi^2.

Normal Order

An average order describes the average size of a function across many integers. A normal order describes the size for most integers individually.

For example, the divisor function has average order

logn, \log n,

but its normal order is smaller:

(logn)log2. (\log n)^{\log 2}.

Similarly, the normal order of the number of distinct prime factors of nn is

loglogn. \log\log n.

These results show that average behavior and typical behavior need not coincide exactly.

Probabilistic Heuristics

Average orders often arise from probabilistic reasoning.

For example, the probability that a random integer is divisible by a prime pp is approximately

1p. \frac1p.

Thus the probability that it is not divisible by pp is

11p. 1-\frac1p.

Such heuristics lead naturally to estimates involving Euler products and logarithms.

Although the integers are deterministic objects, many arithmetic phenomena behave statistically.

Dirichlet Series and Average Orders

Dirichlet series encode average behavior analytically.

For example,

n=1τ(n)ns=ζ(s)2. \sum_{n=1}^{\infty}\frac{\tau(n)}{n^s} = \zeta(s)^2.

The pole of ζ(s)2\zeta(s)^2 at

s=1 s=1

controls the growth of

nxτ(n). \sum_{n\le x}\tau(n).

Similarly,

n=1φ(n)ns=ζ(s1)ζ(s). \sum_{n=1}^{\infty}\frac{\varphi(n)}{n^s} = \frac{\zeta(s-1)}{\zeta(s)}.

The analytic properties of these Dirichlet series determine asymptotic behavior of the underlying arithmetic functions.

This principle is central in analytic number theory.

Role in Number Theory

Average orders reveal large-scale arithmetic structure hidden behind irregular local behavior.

They connect arithmetic functions with harmonic sums, Euler products, Dirichlet series, and probabilistic heuristics. Instead of studying isolated integers, one studies statistical laws across all integers.

This shift from exact formulas to asymptotic behavior is one of the defining transitions from elementary number theory to analytic number theory.