Arithmetic Functions
This is Lab 17 from Clint by Hugh Montgomery, edited by Codex and Elad Zelingher. All rights reserved to Hugh Montgomery.
A function is called an arithmetic function if its domain is the set of positive integers (or perhaps the set Z of all integers). Among the most important and useful arithmetic functions are the following: The number of distinct primes dividing , . The number of primes dividing , counting multiplicity, . The Möbius -function, which is defined to be if is squarefree, and 0 otherwise. The divisor function , which is the number of positive divisors of , . By the Chinese Remainder Theorem, we may show that . The Euler -function, which counts the number of reduced residues modulo . By using the Chinese Remainder Theorem we know that . The -function is the sum of the positive divisors of , . By using the Chinese Remainder Theorem we may show that .
Problem 1
The program ArFcnTab provides a table of the six arithmetic functions defined above. You may use the pagination controls to page up or page down through the table. By entering a number in “Jump to ,” you may jump to a different part of the table. By scrolling down through the table, make a list of those for which is odd. Formulate a conjecture. Can you prove it? (Theorem 4.3 of NZM is usefl here.)
Problem 2
For , compute a table of values of the function . Choose an at random, . Use the program Factor to factor , and then list the divisors of . For each dividing , use the factorization of to determine the value of , and confirm that ArFcnTab provides the same values. For this , evaluate . Formulate a conjecture concerning the values of this sum. (See Theorem 4.7 of NZM.)
Problem 3
For , construct a table of the values of . Choose a large at random, . Use Factor to factor , and construct a list of the divisors of . Use ArFcnTab to provide the values of for these divisors, and hence evaluate the sum . Formulate a conjecture regarding the values of this sum. (See Theorem 4.6 of NZM.)
Problem 4
Make a list of those , , for which . What do you notice about the prime factorizations of these ? Describe these in some other way.
Problem 5
Using ArFcnTab, look for small values of . Other than , what is the smallest value you find? When does it take this small value? Does it take this value infinitely many times? Why? Now look for large values of . Make a list of those , , for which is larger than any previous values. That is, if then . Give the prime factorization of each of these . Formulate a conjecture regarding these . Can you prove your conjecture? (See Theorem 8.30 in NZM.)
Problem 6
Proceed as in the preceding problem, but with replaced by . (Problem 10 at the end of §8.3 is relevant here.)
Problem 7
Construct a list of those , for which is larger than any preceding value. That is, if then . Formulate a conjecture regarding these . What information would you need concerning the distribution of prime numbers in order to prove your conjecture?
Problem 8
Construct a table of those , , for which is smaller than any preceding value. That is, if then . Formulate a conjecture concerning this set of integers . Can you prove your conjecture? (Problem 15 at the end of §8.3 of NZM is relevant here.)
Problem 9
Construct a table of the values of , for . Formulate a conjecture concerning the values taken by this sum. Can you prove your conjecture? (See the proof of Theorem 8.25 in NZM.)
Problem 10
Construct a table of the values of , of , and of , for . Formulate a conjecture concerning the relative sizes of these three functions. Can you prove your conjecture? (See the discussion in the middle of p. 395 of NZM.)
Problem 11
A number is called perfect if . That is, is the sum of its proper divisors. What perfect numbers do you find in the interval ? It has long been conjectured that there are no odd perfect numbers—indeed, this is very probably the oldest unsolved problem in all of mathematics. By examining the values provided by ArFcnTab, confirm that the numbers , , and are also perfect. Factor these numbers, and note that their prime decompositions exhibit a common pattern. Can you show that all even perfect numbers are of this shape?
Problem 12
The values of some of our six arithmetic functions tend to be correlated. For example, tends to be large (but is not always large) when is large. In the case of and , the correlation is negative: tends to be large when is small. To investigate this principle in a quantitative form, tabulate the values of for , and also for several large values of . Do all the values observed lie in the interval ? If so, why should they?
Problem 13
Although takes on some large values for large , these values are small compared with fractional powers of . More precisely, for any there is a constant such that for all positive integers . Tabulate the values of for . What is the largest value observed? This is the unique maximum of this function. The unique maximum of is attained at . What is this maximum value? The maximum of is attained at . What is this maximum? The maximum of occurs at . What is this maximum? Here , so you are now beyond the range of ArFcnTab. To calculate you must factor and use the formula. The maximum of occurs at . What is this maximum? To understand how these are found, see the discussion leading to (8.54) on pp. 395–396 of NZM. This analysis goes back to S. Ramanujan, Highly Composite Numbers, Proc. London Math. Soc. 2 1915, 347–409; Collected Papers pp. 78–128. The set of for which assumes a record-breaking value is not so easy to describe completely, although Ramanujan determined many of its properties.
Problem 14
One might expect that the Möbius function takes the values and with roughly equal frequency. To test this hypothesis, put , and tabulate for integral values of . Here only squarefree numbers are being counted, so it is natural to consider also . Form a similar table of this function. How do the values of these functions compare with ? Here the numerical evidence may lead you to formulate false conjectures. It was conjectured by Mertens that for all . Although it is now believed that , the first disprove of Mertens' conjecture was found only recently (A. M. Odlyzko and H. J. J. te Riele, Disproof of the Mertens Conjecture, J. Reine Angew. Math. 357 (1985), 138–160). The argument disproves Mertens' conjecture by showing that . Concerning , Pólya conjectured that for all . This was disproved by C. B. Haselgrove, A disproof of a conjecture of Pólya, Mathematika 5 (1958), 141–145, and later R. Sherman Lehman, On Liouville's function, Math. Comp. 14 (1960), 311–320 showed more explicitly that . This is not necessarily the least counterexample, but it is known that Pólya's conjecture is true for all .
Problem 15
The program Pi calculates the number of primes not exceeding . The program operates by first sieving to construct a table of primes not exceeding . Since the next prime after this, namely , is larger than , it follows that primes up to can be determined by using these small primes for sieving. To limit the use of memory, the primes are constructed in intervals of length , one interval at a time, until the limit is reached. The program is restricted to , because the running time (which is roughly comparable to ) is too great for larger . For , , how does compare with ? A better approximation is given by
but numerical values of this integral are not so easy to compute.
Faster methods of computing are discussed in the following papers.
J. C. Lagarias, V. S. Miller, and A. M. Odlyzko, Computing : The Meissel-Lehmer method, Math. Comp. 44 (1985), 537–560.
J. C. Lagarias and A. M. Odlyzko, New algorithms for computing , Number Theory: New York 1982, (D. V. Chudnovsky, G. V. Chudnovsky, H. Cohn and M. B. Nathanson, eds.), pp. 176–193; Lecture Notes in Mathematics 1052, Springer-Verlag (Berlin), 1984.
J. C. Lagarias and A. M. Odlyzko, Computing : an analytic method, J. Algorithms 8 (1987), 173–191.
Problem 16
G. H. Hardy and S. Ramanujan proved that for most integers , both and are approximately . Their proof was complicated; the more elegant method used in proving Theorem 8.32 and Corollary 8.33 of NZM was found later by P. Turán. This has an interesting consequence: Since for all , it follows that for most , where . Using ArFcnTab, compute the averages of and in the intervals for , and compare these averages with . (Remember, as always to use natural logarithms, i.e., logs to the base .)
Problem 17
By borrowing code from the program Pi, construct a program to count the number of twin primes not exceeding . Does this function increase at a regular rate? For interesting information regarding the distribution of prime numbers, see Don Zagier, The First Million Prime Numbers, Math. Intell. 1 (1978), 7–19.