The Handbook of Mathematical Functions
Total Page:16
File Type:pdf, Size:1020Kb
Chapter 27 Functions of Number Theory T. M. Apostol1 Notation 638 Additive Number Theory 644 27.1 Special Notation ............. 638 27.13 Functions ................. 644 27.14 Unrestricted Partitions .......... 645 Multiplicative Number Theory 638 Applications 647 27.2 Functions ................. 638 27.15 Chinese Remainder Theorem ....... 647 27.3 Multiplicative Properties ......... 640 27.16 Cryptography ............... 647 27.4 Euler Products and Dirichlet Series ... 640 27.17 Other Applications ............ 647 27.5 Inversion Formulas ............ 641 Computation 648 27.6 Divisor Sums ............... 641 27.18 Methods of Computation: Primes .... 648 27.7 Lambert Series as Generating Functions . 641 27.19 Methods of Computation: Factorization . 648 27.8 Dirichlet Characters ............ 642 27.20 Methods of Computation: Other Number- 27.9 Quadratic Characters ........... 642 Theoretic Functions ............ 649 27.10 Periodic Number-Theoretic Functions .. 642 27.21 Tables ................... 649 27.22 Software .................. 649 27.11 Asymptotic Formulas: Partial Sums ... 643 27.12 Asymptotic Formulas: Primes ...... 644 References 649 1California Institute of Technology, Pasadena, California. Acknowledgments: The author thanks Basil Gordon for comments on an earlier draft, and David Bressoud for providing xx27.12, 27.18, 27.19, and 27.22. Copyright c 2009 National Institute of Standards and Technology. All rights reserved. 637 638 Functions of Number Theory π(x) that counts the number of primes not exceeding x. Notation It can be expressed as a sum over all primes p ≤ x: X 27.2.2 π(x) = 1: 27.1 Special Notation p≤x Gauss and Legendre conjectured that π(x) is asymp- (For other notation see pp. xiv and 873.) totic to x= log x as x ! 1: d; k; m; n positive integers (unless otherwise x 27.2.3 π(x) ∼ : indicated). log x d j n d divides n. (See Gauss(1863, Band II, pp. 437{477) and Legendre (m; n) greatest common divisor of m; n. If (1808, p. 394).) (m; n) = 1, m and n are called relatively This result, first proved in Hadamard(1896) and prime, or coprime. de la Vall´eePoussin(1896a,b), is known as the prime (d1; : : : ; dn) greatest common divisor of d1; : : : ; dn. number theorem. An equivalent form states that the P Q djn, djn sum, product taken over divisors of n. nth prime pn (when the primes are listed in increasing P (m;n)=1 sum taken over m, 1 ≤ m ≤ n and m order) is asymptotic to n log n as n ! 1: relatively prime to n. 27.2.4 pn ∼ n log n: p; p1; p2;::: prime numbers (or primes): integers (See also x27.12.) Other examples of number-theoretic (> 1) with only two positive integer functions treated in this chapter are as follows. divisors, 1 and the number itself. ( P , Q sum, product extended over all primes. 1 1; n = 1; p p 27.2.5 = x; y real numbers. n 0; n > 1: P Pbxc n≤x n=1. X k φk(n) = m ; log x natural logarithm of x, written as ln x in 27.2.6 (m;n)=1 other chapters. the sum of the kth powers of the positive integers m ≤ n ζ(s) Riemann zeta function; see x25.2(i). that are relatively prime to n. (njP ) Jacobi symbol; see x27.9. (njp) Legendre symbol; see x27.9. 27.2.7 φ(n) = φ0(n): This is the number of positive integers ≤ n that are relatively prime to n; φ(n) is Euler's totient. If (a; n) = 1, then the Euler{Fermat theorem states Multiplicative Number Theory that 27.2.8 aφ(n) ≡ 1 (mod n); and if φ(n) is the smallest positive integer f such that 27.2 Functions af ≡ 1 (mod n), then a is a primitive root mod n. The 2 φ(n) 27.2(i) Definitions φ(n) numbers a; a ; : : : ; a are relatively prime to n and distinct (mod n). Such a set is a reduced residue Functions in this section derive their properties from the system modulo n. fundamental theorem of arithmetic, which states that X d(n) = 1 every integer n > 1 can be represented uniquely as a 27.2.9 product of prime powers, djn is the number of divisors of n and is the divisor func- ν(n) tion. It is the special case k = 2 of the function dk(n) Y ar 27.2.1 n = pr ; that counts the number of ways of expressing n as the r=1 product of k factors, with the order of factors taken into where p ; p ; : : : ; p are the distinct prime factors of account. 1 2 ν(n) X σ (n) = dα; n, each exponent ar is positive, and ν(n) is the number 27.2.10 α of distinct primes dividing n.(ν(1) is defined to be 0.) djn Euclid's Elements (Euclid(1908, Book IX, Proposition is the sum of the αth powers of the divisors of n, where 20)) gives an elegant proof that there are infinitely many the exponent α can be real or complex. Note that primes. Tables of primes (x27.21) reveal great irregular- σ0(n) = d(n). ity in their distribution. They tend to thin out among X J (n) = 1; the large integers, but this thinning out is not com- 27.2.11 k pletely regular. There is great interest in the function ((d1;:::;dk);n)=1 27.2 Functions 639 is the number of k-tuples of integers ≤ n whose greatest This is Liouville's function. common divisor is relatively prime to n. This is Jordan's 27.2.14 Λ(n) = log p, n = pa, function. Note that J1(n) = φ(n). a In the following examples, a1; : : : ; aν(n) are the ex- where p is a prime power with a ≥ 1; otherwise ponents in the factorization of n in (27.2.1). Λ(n) = 0. This is Mangoldt's function. 8 1; n = 1; <> ν(n) 27.2.12 µ(n) = (−1) ; a1 = a2 = ··· = aν(n) = 1; 27.2(ii) Tables :>0; otherwise: This is the M¨obiusfunction. Table 27.2.1 lists the first 100 prime numbers pn. Ta- ( ble 27.2.2 tabulates the Euler totient function φ(n), the 1; n = 1; divisor function d(n) (= σ (n)), and the sum of the 27.2.13 0 λ(n) = a +···+a (−1) 1 ν(n) ; n > 1: divisors σ(n) (= σ1(n)), for n = 1(1)52. Table 27.2.1: Primes. n pn pn+10 pn+20 pn+30 pn+40 pn+50 pn+60 pn+70 pn+80 pn+90 1 2 31 73 127 179 233 283 353 419 467 2 3 37 79 131 181 239 293 359 421 479 3 5 41 83 137 191 241 307 367 431 487 4 7 43 89 139 193 251 311 373 433 491 5 11 47 97 149 197 257 313 379 439 499 6 13 53 101 151 199 263 317 383 443 503 7 17 59 103 157 211 269 331 389 449 509 8 19 61 107 163 223 271 337 397 457 521 9 23 67 109 167 227 277 347 401 461 523 10 29 71 113 173 229 281 349 409 463 541 Table 27.2.2: Functions related to division. n φ(n) d(n) σ(n) n φ(n) d(n) σ(n) n φ(n) d(n) σ(n) n φ(n) d(n) σ(n) 1 1 1 1 14 6 4 24 27 18 4 40 40 16 8 90 2 1 2 3 15 8 4 24 28 12 6 56 41 40 2 42 3 2 2 4 16 8 5 31 29 28 2 30 42 12 8 96 4 2 3 7 17 16 2 18 30 8 8 72 43 42 2 44 5 4 2 6 18 6 6 39 31 30 2 32 44 20 6 84 6 2 4 12 19 18 2 20 32 16 6 63 45 24 6 78 7 6 2 8 20 8 6 42 33 20 4 48 46 22 4 72 8 4 4 15 21 12 4 32 34 16 4 54 47 46 2 48 9 6 3 13 22 10 4 36 35 24 4 48 48 16 10 124 10 4 4 18 23 22 2 24 36 12 9 91 49 42 3 57 11 10 2 12 24 8 8 60 37 36 2 38 50 20 6 93 12 4 6 28 25 20 3 31 38 18 4 60 51 32 4 72 13 12 2 14 26 12 4 42 39 24 4 56 52 24 6 98 640 Functions of Number Theory 27.3 Multiplicative Properties Euler product of the series. If f(n) is completely multi- plicative, then each factor in the product is a geometric Except for ν(n), Λ(n), pn, and π(x), the functions in series and the Euler product becomes x27.2 are multiplicative, which means f(1) = 1 and 1 X Y −1 27.3.1 f(mn) = f(m)f(n), (m; n) = 1. 27.4.2 f(n) = (1 − f(p)) : If f is multiplicative, then the values f(n) for n > 1 n=1 p are determined by the values at the prime powers. Euler products are used to find series that generate Specifically, if n is factored as in (27.2.1), then many functions of multiplicative number theory. The completely multiplicative function f(n) = n−s gives the ν(n) Euler product representation of the Riemann zeta func- Y ar 27.3.2 f(n) = f(pr ): tion ζ(s)(x25.2(i)): r=1 1 In particular, X Y 27.4.3 ζ(s) = n−s = (1 − p−s)−1, <s > 1.