Trisha Shetty (Editor)

Average order of an arithmetic function

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

In number theory, an average order of an arithmetic function is some simpler or better-understood function which takes the same values "on average".

Contents

Let f be an arithmetic function. We say that an average order of f is g if

n x f ( n ) n x g ( n )

as x tends to infinity.

It is conventional to choose an approximating function g that is continuous and monotone. But even so an average order is of course not unique.

In cases where the limit

lim N 1 N n N f ( n ) = c

exists, it is said that f has a mean value (average value) c .

Examples

  • An average order of d (n), the number of divisors of n, is log n;
  • An average order of σ (n), the sum of divisors of n, is n π2/ 6;
  • An average order of φ (n), Euler's totient function of n, is 6 n/ π2;
  • An average order of r (n), the number of ways of expressing n as a sum of two squares, is π n;
  • The average order of representations of a natural number as a sum of three squares is 4π n/ 3;
  • The average number of decompositions of a natural number into a sum of one or more consecutive prime numbers is n log 2;
  • An average order of ω (n), the number of distinct prime factors of n, is log log n;
  • An average order of Ω (n), the number of prime factors of n, is log log n;
  • The prime number theorem is equivalent to the statement that the von Mangoldt function Λ (n) has average order 1;
  • An average order of μ (n), the Möbius function, is zero; this is again equivalent to the prime number theorem.
  • Calculating mean values using Dirichlet series

    In case F is of the form

    F ( n ) = d n f ( d ) ,

    for some arithmetic function f ( n ) , one has,

    n x F ( n ) = d x f ( d ) n x , d n 1 = d x f ( d ) [ x / d ] = x d x f ( d ) d   + O ( d x | f ( d ) | ) . ( 1 )

    This identity often provides a practical way to calculate the mean value in terms of the Riemann zeta function. This is illustrated in the following example.

    The density of the k-th power free integers in N

    For an integer k 1 the set Q k of k-th-power-free integers is

    Q k := { n Z n  is not divisible by  d k  for any integer  d 2 } .

    We calculate the natural density of these numbers in N, that is, the average value of 1 Q k , denoted by δ ( n ) , in terms of the zeta function.

    The function δ is multiplicative, and since it is bounded by 1, its Dirichlet series converges absolutely in the half-plane R e ( s ) < 1 , and there has Euler product

    Q k n s = n δ ( n ) n s = p ( 1 + p s + + p s ( k 1 ) ) = p ( 1 p s k 1 p s ) = ζ ( s ) ζ ( s k ) .

    By the Möbius inversion formula, we get

    1 ζ ( k s ) = n μ ( n ) n k s ,

    where μ stands for the Möbius function. Equivalently,

    1 ζ ( k s ) = n f ( n ) n s ,

    where f ( n ) = { μ ( d ) n = d k 0 otherwise ,

    and hence,

    ζ ( s ) ζ ( s k ) = n ( d n f ( d ) ) n s .

    By comparing the coefficients, we get

    δ ( n ) = d n f ( d ) n s .

    Using (1), we get

    d x δ ( d ) = x d x ( f ( d ) / d ) + O ( x 1 / k ) .

    We conclude that,

    n Q k , n x 1 = x ζ ( k ) + O ( x 1 / k ) ,

    where for this we used the relation

    n ( f ( n ) / n ) = n f ( n k ) n k = n μ ( n ) n k = 1 ζ ( k ) ,

    which follows from the Möbius inversion formula.

    In particular, the density of the square-free integers is ζ ( 2 ) 1 = 6 π 2 .

    Visibility of lattice points

    We say that two lattice points are visible from one another if there is no lattice point on the open line segment joining them.

    Now, if gcd(a, b) = d > 1, then writing a = da2, b = db2 one observes that the point (a2, b2) is on the line segment which joins (0,0) to (a, b) and hence (a, b) is not visible from the origin. Thus (a, b) is visible from the origin implies that (a, b) = 1. Conversely, it is also easy to see that gcd(a, b) = 1 implies that there is no other integer lattice point in the segment joining (0,0) to (a,b). Thus, (a, b) is visible from (0,0) if and only if gcd(a, b) = 1.

    Notice that φ ( n ) n is the probability of a random point on the square { ( r , s ) N : max ( | r | , | s | ) = n } to be visible from the origin.

    Thus, one can show that the natural density of the points which are visible from the origin is given by the average,

    lim N 1 N n N φ ( n ) n = 6 π 2 = 1 ζ ( 2 ) .

    interestingly, 1 ζ ( 2 ) is also the natural density of the square-free numbers in N. In fact, this is not a coincidence. Consider the k-dimensional lattice, Z k . The natural density of the points which are visible from the origin is 1 ζ ( k ) , which is also the natural density of the k-th free integers in N.

    Divisor functions

    Consider the generalization of d ( n ) :

    σ α ( n ) = d n d α .

    The following are true:

    n x σ α ( n ) = { n x σ α ( n ) = ζ ( α + 1 ) α + 1 x α + 1 + O ( x β ) if  α > 0 , n x σ 1 ( n ) = ζ ( 2 ) x + O ( log x ) if  α = 1 , n x σ α ( n ) = ζ ( α + 1 ) x + O ( x max ( 0 , 1 + α ) ) otherwise.

    where β = m a x ( 1 , α ) .

    Better average order

    This notion is best discussed through an example. From

    n x d ( n ) = x log x + ( 2 γ 1 ) x + o ( x )

    ( γ is the Euler–Mascheroni constant) and

    n x log n = x log x x + O ( log x ) ,

    we have the asymptotic relation

    n x ( d ( n ) ( log n + 2 γ ) ) = o ( x ) ( x ) ,

    which suggests that the function log n + 2 γ is a better choice of average order for d ( n ) than simply log n .

    Definition

    Let h(x) be a function on the set of monic polynomials over Fq. For n 1 we define

    Ave n ( h ) = 1 q n f  monic , deg ( f ) = n h ( f ) .

    This is the mean value (average value) of h on the set of monic polynomials of degree n. We say that g(n) is an average order of h if

    Ave n ( h ) g ( n )

    as n tends to infinity.

    In cases where the limit,

    lim n Ave n ( h ) = c

    exists, it is said that h has a mean value (average value) c.

    Zeta function and Dirichlet series in Fq[X]

    Let Fq[X]=A be the ring of polynomials over the finite field Fq.

    Let h be a polynomial arithmetic function (i.e. a function on set of monic polynomials over A). Its corresponding Dirichlet series define to be

    D h ( s ) = f  monic h ( f ) | f | s ,

    where for g A , set | g | = q d e g ( g ) if g 0 , and | g | = 0 otherwise.

    The polynomial zeta function is then

    ζ A ( s ) = f  monic | f | s .

    Similar to the situation in N, every Dirichlet series of a multiplicative function h has a product representation (Euler product):

    D h ( s ) = P ( n = 0 h ( P n ) | P | s n ) ,

    Where the product runs over all monic irreducible polynomials P.

    For example, the product representation of the zeta function is as for the integers: ζ A ( s ) = P ( 1 | P | s ) 1 .

    Unlike the classical zeta function, ζ A ( s ) is a simple rational function:

    ζ A ( s ) = f ( | f | s ) = n deg(f)=n q s n = n ( q n s n ) = ( 1 q 1 s ) 1 .

    In a similar way, If ƒ and g are two polynomial arithmetic functions, one defines ƒ * g, the Dirichlet convolution of ƒ and g, by

    ( f g ) ( m ) = d m f ( m ) g ( m d ) = a b = m f ( a ) g ( b )

    where the sum extends over all monic divisors d of m, or equivalently over all pairs (a, b) of monic polynomials whose product is m. The identity D h D g = D h g still holds. Thus, like in the elementary theory, the polynomial Dirichlet series and the zeta function has a connection with the notion of mean values in the context of polynomials. The following examples illustrate it.

    The density of the k-th power free polynomials in Fq[X]

    Define δ ( f ) to be 1 if f is k-th power free and 0 otherwise.

    We calculate the average value of δ , which is the density of the k-th power free polynomials in Fq[X], in the same fashion as in the integers.

    By multiplicativity of δ :

    f δ ( f ) | f | s = P ( j = 0 k 1 ( | P | j s ) ) = P 1 | P | s k 1 | P | s = ζ A ( s ) ζ A ( s k ) = 1 q 1 k s 1 q 1 s = ζ A ( s ) ζ A ( k s )

    Denote b n the number of k-th power monic polynomials of degree n, we get

    f δ ( f ) | f | s = n def f = n δ ( f ) | f | s = n b n q s n .

    Making the substitution u = q s we get:

    1 q u k 1 q u = n = 0 b n u n .

    Finally, expand the left-hand side in a geometric series and compare the coefficients on u n on both sides, to conclude that

    b n = { q n n k 1 q n ( 1 q 1 k ) otherwise

    Hence,

    Ave n ( δ ) = 1 q 1 k = 1 ζ A ( k )

    And since it doesn't depend on n this is also the mean value of δ ( f ) .

    Polynomial Divisor functions

    In Fq[X], we define

    σ k ( m ) = f | m ,  monic | f | k .

    We will compute Ave n ( σ k ) for k 1 .

    First, notice that

    σ k ( m ) = h I ( m )

    where h ( f ) = | f | k and I ( f ) = 1 f .

    Therefore,

    m σ k ( m ) | m | s = ζ A ( s ) m h ( m ) | m | s .

    Substitute q s = u we get,

    LHS = n ( deg ( m ) = n σ k ( m ) ) u n , and by Cauchy product we get, RHS = n q n ( 1 s ) n ( deg ( m ) = n h ( m ) ) u n = n q n u n l q l q l k u l = n ( j = 0 n q n j q j k + j ) = n ( q n ( 1 q k ( n + 1 ) 1 q k ) ) u n .

    Finally we get that,

    Ave n σ k = 1 q k ( n + 1 ) 1 q k .

    Notice that

    q n Ave n σ k = q n ( k + 1 ) ( 1 q k ( n + 1 ) 1 q k ) = q n ( k + 1 ) ( ζ ( k + 1 ) ζ ( k n + k + 1 ) )

    Thus, if we set x = q n then the above result reads

    deg ( m ) = n , m  monic σ k ( m ) = x k + 1 ( ζ ( k + 1 ) ζ ( k n + k + 1 ) )

    which resembles the analogous result for the integers:

    n x σ k ( n ) = ζ ( k + 1 ) k + 1 x k + 1 + O ( x k )

    Number of divisors

    Let d ( f ) be the number of monic divisors of f and let D ( n ) be the sum of d ( f ) over all monics of degree n.

    ζ A ( s ) 2 = ( h | h | s ) ( g | g | s ) = f ( h g = f 1 ) | f | s = f d ( f ) | f | s = D d ( s ) = n = 0 D ( n ) u n

    where u = q s .

    Expanding the right-hand side into power series we get,

    D ( n ) = ( n + 1 ) q n .

    Substitute x = q n the above equation becomes:

    D ( n ) = x log q ( x ) + x which resembles closely the analogous result for integers k = 1 n d ( k ) = x log x + ( 2 γ 1 ) x + O ( x ) , where γ is Euler constant.

    It is interesting to note that not a lot is known about the error term for the integers, while in the polynomials case, there is no error term! This is because of the very simple nature of the zeta function ζ A ( s ) , and that it has NO zeros.

    Polynomial von Mangoldt function

    The Polynomial von Mangoldt function is defined by: Λ A ( f ) = { log | P | if  f = | P | k  for some prime monic P  and integer  k 1 , 0 otherwise.

    Where the logarithm is taken on the basis of q.

    Proposition. The mean value of Λ A is exactly 1.

    Proof. Let m be a monic polynomial, and let m = i = 1 l P i e i be the prime decomposition of m.

    We have,

    f | m Λ A ( f ) = ( i 1 , , i l ) | 0 i j e j Λ A ( j = 1 l P j i j ) = j = 1 l i = 1 e i Λ A ( P j i ) = j = 1 l i = 1 e i log | P j | = j = 1 l e j log | P j | = j = 1 l log | P j | e j = log | ( i = 1 l P i e i ) | = log ( m )

    Hence,

    I Λ A ( m ) = log | m |

    and we get that,

    ζ A ( s ) D Λ A ( s ) = m l o g | m | | m | s .

    Now,

    m | m | s = n deg m = n u n = n q n u n = n q n ( 1 s ) .

    Thus,

    d d s m | m | s = n log ( q n ) q n ( 1 s ) = n deg ( f ) = n log ( q n ) q n s = f log | f | | f | s .

    We got that:

    D Λ A ( s ) = ζ A ( s ) ζ A ( s )

    Now,

    m Λ A ( m ) | m | s = n ( deg ( m ) = n Λ A ( m ) q s m ) = n ( deg ( m ) = n Λ A ( m ) ) u n = ζ A ( s ) ζ A ( s ) = q 1 s l o g ( q ) 1 q 1 s = log ( q ) n = 1 q n u n

    Hence,

    deg ( m ) = n Λ A ( m ) = q n log ( q ) ,

    and by dividing by q n we get that,

    Ave n Λ A ( m ) = log ( q ) = 1.

    Polynomial Euler totient function

    Define Euler totient function polynomial analogue, Φ , to be the number of elements in the group ( A / f A ) . We have,

    deg f = n , f  monic Φ ( f ) = q 2 n ( 1 q 1 ) .

    References

    Average order of an arithmetic function Wikipedia