arXiv:1612.01394v2 [math.NT] 15 Dec 2016 fti ucinwe t rueti large. is argument its when function this of (1) M¨obius function (3) (2) (4) (4-7): formula h etn function Mertens The oeie h bv ento a eetne ora number real to extended be can definition above the Sometimes hr h M¨obius function the where utemr,Mresfnto a te representations. other has function Mertens Furthermore, W LMNAYFRUA N OECOMPLICATED SOME AND FORMULAE ELEMENTARY TWO Abstract. inwt h uuaiesmo h qaereitgr,are integers, squarefree neighbo the of two sum empirically. between cumulative maximum/minimum the with local tion 10043 the zeros, hs formulae, these etdb computer. by mented 2 etn ucinEeetr oml eo oa maximum/m Local Zeros formula Elementary function Mertens Keywords: × 10 7 ape,sm ftecmlctdpoete o etn fun Mertens for properties complicated the of some samples, µ ( µ k RPRISFRMRESFUNCTION MERTENS FOR PROPERTIES w lmnayfrua o etn function Mertens for formulae elementary Two ( = ) k o l oiieintegers positive all for ) M ( n a ecluae ietyadsml,wihcnb aiyi easily be can which simply, and directly calculated be can ) M ( − M ( 0 1 1) n (1) µ siprati ubrter,epcal h calculation the especially theory, number in important is ) m M ( k ∼ ( sdfie o oiieinteger positive a for defined is ) if x if k M M = ) 1. OGQAGWEI QIANG RONG k M 1 = (2 k ( stepoutof product the is Introduction x ( × sdvsbeb rm square prime a by divisible is 2 n = ) 1 πi 10 = ) 7 Z r acltdoeb n.Bsdo these on Based one. by one calculated are ) 1 M 1 ≤ c X X k − n c =1 k n ( + i , ≤ n ∞ i x ∞ µ sdfie stecmltv u fthe of sum cumulative the as defined is ) µ ( k sζ ( k ) x ( ) s nmmsurfe integers squarefree inimum s ) m d s itntprimes distinct nesodnmrclyand numerically understood M ( n hyaemil hw in shown mainly are They r band With obtained. are ) eo,adterela- the and zeros, r ction sfollows: as s k by M ( n ,is16479 its ), mple- 2 RONG QIANG WEI
where ζ(s) is the the Riemann zeta function, s is complex, and c> 1
(5) M(n)= exp(2πia)
aX∈Fn
where Fn is the Farey sequence of order n.
n n n n n n n n n a≤n a≤ b b≤ a a≤ bc b≤ ac b≤ ab a≤ bcd b≤ acd b≤ abd b≤ abc (6) M(n) = 1 1+ 1 1+ 1 . . . − − Xa=2 Xa=2 Xb=2 Xa=2 Xb=2 Xc=2 Xa=2 Xb=2 Xc=2 Xd=2 Formula (6) shows M(n) is the sum of the number of points under n-dimensional hyper- boloids.
(7) M(n) = detRn×n where R is the Redheffer matrix. R = r is defined by r = 1 if j = 1 or i j, and { ij} ij | rij = 0 otherwise. However, none of the representations above results in practical algorithms for calculating the Mertens function. At present, many algorithms are based or partially based on sieving similar to those used in prime counting (eg., Kotnik and van de Lune, 2004; Kuznetsov, 2011; Hurst, 2016). With the sieve algorithm, M(x) has been computed for all x 1022(Kuznetsov, 2011). For the isolated values of Mertens function M(n), M(2n) has been≤ computed for all positive integers n 73 with combinatorial algorithm (partially sieving) (Hurst, 2016). ≤ On the other hand, there are also some (recursive) formulae for Mertens function M(n) in the mathematical literature by which the practical algorithms for the M(n) can be obtained (eg., Neubauer, 1963; Dress, 1993; Benito and Varona 2008; and the references therein). For example, Benito and Varona (2008) present a two-parametric family of recursive formula as follows,
n r+1 2M(n)+3 = ⌊ ⌋ g(n, k)µ(k) k=1 sP (8) n n n n + [M( 3+6b ) 2M( 5+6b ) + 3M( 6+6b ) 2M( 7+6b )] b=0 − − Pr + h(a)[M( n ) M( n )] a − a+1 a=6Ps+9 where n, r, and s are three integers such that s 0 and 6s + 9 r n 1. g(n, k) = 3 n 2 n 1 . h(a)= g(n, k) for n < k n .≥ ≤ ≤ − ⌊ 3k ⌋− ⌊ 2k − 2 ⌋ a+1 ≤ a Here we introduce two new elementary formulae to calculate the M(n) which are not based on sieving. We calculate Mertens function from M(1) to M(2 107) with these formulae one by one, and study some properties of the M(n) numerically× and empirically. TWO ELEMENTARY FORMULAE AND SOME COMPLICATED PROPERTIES FOR MERTENS FUNCTION3
2. Two elementary formulae for Mertens function In Wei (2016), a definite recursive relation for M¨obius function is introduced by two simple ways. One is from M¨obius transform, and the other is from the submatrix of the Redheffer Matrix. The recursive relation for M¨obius function µ(k) is,
k−1 1 m k (9) µ(k)= lkmµ(m), k = 2, 3, ; lkm = | − · · · 0 else mX=1 and µ(1) = 1. From formula (9), two elementary formulae for Mertens function M(n) can be obtained as follows,
n n k−1 1 m k (10) M(n)= µ(k)=1+ [ lkmµ(m)], k = 2, 3, ; lkm = | − · · · 0 else Xk=1 Xk=2 mX=1
n−1 1 m n (11) M(n)= M(n 1) lnmµ(m),n = 2, 3, ; lnm = | − − · · · 0 else mX=1 where M(1)=1. With formula (10) or (11), M(n) can be calculated directly and the most complex operation is only the Mod. We calculated the Mertens function from M(1) to M(2 107) one by one. Some values of the M(n) are listed in Table 1. ×
Table 1: Some values of the Mertens function M(n)
n M(n) n M(n) n M(n) n M(n) n M(n) n M(n) 10 -1 20 -3 30 -3 40 0 50 -3 60 -1 102 1 2 102 -8 3 102 -5 4 102 1 5 102 -6 6 102 4 103 2 2 × 103 5 3 × 103 -6 4 × 103 -9 5 × 103 2 6 × 103 0 104 -23 2 × 104 26 3 × 104 18 4 × 104 -10 5 × 104 23 6 × 104 -83 105 -48 2 × 105 -1 3 × 105 220 4 × 105 11 5 × 105 -6 6 × 105 -230 106 212 2 × 106 -247 3 × 106 107 4 × 106 192 5 × 106 -709 6 × 106 257 107 1037 2 × 107 -953 3.5× 106 -138 4.5× 106 173 5.5× 106 -513 6.5× 106 867 × × × × ×
3. Some complicated properties for Mertens function M(n) 3.1. Variation of Mertens function M(n) with n. Figure 1 shows the Mertens function M(n) to n = 5 105, n = 1 106, n = 1.5 107, and n = 2 107, respectively. It can be found the distribution× of Mertens× function M× (n) is complicated.× It oscillates up and down 4 RONG QIANG WEI with increasing amplitude over n, but grows slowly in the positive or negative directions until it increases to a certain peak value.
n=5000000 n=10000000 800 1500 600 1000 400 500 200 ) ) n n
( 0 ( 0
M -200 M -500 -400 -1000 -600 -800 -1500 0 1 2 3 4 5 0 2 4 6 8 10 n ×106 n ×106
n=15000000 n=20000000 1500 1500
1000 1000
500 500 ) ) n n
( 0 ( 0 M M -500 -500
-1000 -1000
-1500 -1500 0 5 10 15 0 0.5 1 1.5 2 n ×106 n ×107
Fig. 1: Mertens function M(n) to n = 5 105, 1 106, 1.5 107, 2 107. × × × × To investigate further the complicated properties of the M(n), a sequence composed of M(1) M(5 105) is analyzed by the method of empirical mode decomposition (EMD) (Tan,− 2016). This× sequence is decomposed into a sum of 19 empirical modes. Some models are shown in Figure 2-3. It can be seen that the empirical modes are still complicated except 16th-19th modes. The fundamental mode (the last mode in Figure 3) is a simple parabola going downward. These empirical modes show further that the Mertens function M(n) has complicated behaviors. It can be found that there is a different variation of the Mertens function M(n) with n in a log-log space. Figure 4 shows the absolute value of the Mertens function M(n) to n = 2 107 in such a space. It can be found M(n) still oscillates but increases| generally| with n×. It seems that the outermost values of| M(n|) increase almost linearly with n, but they are less than those from √n. | | It seems from Figure 1 and 4 to the M(n) has some fractal properties. We check this by estimating M(n)’s power spectral density (PSD). We calculate the PSD for M(n) sequence from M(1) to M(2 107) by taking n as time. The result is shown in Figure 5. It can be found that the logarithmic× PSD of M(n) has a linear decreasing trend with increasing logarithmic frequency, which does indicate that M(n) has some fractal properties. However, the M¨obius function µ(n), which is taken as an independent random sequence in Wei (2016), has no such properties. Its cumulative sum, M(n) reduces partly the randomness. TWO ELEMENTARY FORMULAE AND SOME COMPLICATED PROPERTIES FOR MERTENS FUNCTION5
20 10 0 -10 -20 0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 ×105 40 20 0 -20 -40 0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 ×105 50
0
-50 0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 ×105 100 50 0 -50 -100 0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 n ×105
Fig. 2: The 9th-12th (from the top to the bottom) empirical modes of the sequence com- posed of M(1) M(5 105) − ×
10 0 -10 -20 0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 ×105
20
0
-20 0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 ×105
15 10 5 0 0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 n ×105
Fig. 3: The 17th-19th (from the top to the bottom) empirical modes of the sequence composed of M(1) M(5 105) − ×
3.2. Zeros of the Mertens function M(n). It is interesting to investigate the distri- bution of the zeros of the Mertens function M(n). Our calculation shows that there are 6 RONG QIANG WEI
104
103 | )
n 2 ( 10 M |
101
100 100 101 102 103 104 105 106 107 108 n
Fig. 4: The absolute value of the Mertens function M(n) to n = 2 107. The dash line is × √n.
1015
1010
105
Magnitude 100
10-5
10-10 10-8 10-7 10-6 10-5 10-4 10-3 10-2 10-1 100 Frequency
Fig. 5: The power spectral density (PSD) for M(n) sequence from M(1) to M(2 107). ×
16479 zeros among these 2 107 values of the M(n), which are shown in the top subfigure of the Figure 6. It can be× seen that the zeros are uneven in our computational domain. TWO ELEMENTARY FORMULAE AND SOME COMPLICATED PROPERTIES FOR MERTENS FUNCTION7
Zeros are denser from 1 to 4 106, and at 8 106. The bottom subfigure of the Figure 6 shows the comparison of the× zeros of the Mertens∼ × function M(n) and those of the M¨obius function µ(n) in our computational domain. One can see that the (7841425) zeros of the µ(n) are much denser than those of the M(n).
1
0.5
✮
✭ 0 ▼
-0.5
-1 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
7 ✦ ♥ 10
1
➭ (n) M(n)
0.5
✮
✭ 0 ▼
-0.5
-1 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
7 ✦ ♥ 10
Fig. 6: Distribution of the zeros of the Mertens function M(n) when n [1, 2 107] (Top); Comparison of the zeros of the Mertens function M(n) with those of the∈ M¨obius× function µ(n)(Bottom).
3.3. The local maximum/minimum of the Mertens function M(n) between two neighbor zeros. Another important property for the Mertens function M(n) is the local maximum/minimum of the M(n) between two neighbor zeros. Here the ”local” means that the sequence of M(n) must have three values at least including the neighbor zeros. Figure 7 shows the variation of such 10043 local maximum/minimum of M(n) (5040 positive values and 5003 minus values) from M(1) to M(2 107) with n. One| can see| that the logarithms of the these local maximum/minimum have× the similar properties to log( M(n) ) vs. log(n) in Figure 4. It should be pointed out that the local maximum/minimum| here| is counted only once when duplicate or more n have the same local maximum/minimum between two neighbor zeros. The maximum of these 2 107 M(n)s is 1240 when n = 10195458, 10195467, 10195468, 10195522; And the minimum× is 1447 when n = 12875814, 12875815, 12875816, 12875818. − 8 RONG QIANG WEI
104
✰ ♣ ✮ 2