On the difference in values of the Euler totient function near prime arguments
Stephan Ramon Garcia, Florian Luca

TL;DR
This paper proves that for each fixed offset, the difference in Euler totient values at points near primes is equally likely to be positive or negative, demonstrating a balanced distribution.
Contribution
It establishes an unconditional result on the equal distribution of the sign of the difference in totient values near primes for all fixed offsets.
Findings
The difference in totient values near primes is positive for 50% of odd primes.
The difference in totient values near primes is negative for 50% of odd primes.
The result holds unconditionally for all fixed offsets ll 1.
Abstract
We prove unconditionally that for each , the difference is positive for of odd primes and negative for .
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAnalytic Number Theory Research · History and Theory of Mathematics
On the difference in values of the Euler totient function near prime arguments
Stephan Ramon Garcia
Department of Mathematics
Pomona College
610 N. College Ave., Claremont, CA 91711
[email protected] http://pages.pomona.edu/ sg064747 and
Florian Luca
School of Mathematics
University of the Witwatersrand
Private Bag 3, Wits 2050, Johannesburg, South Africa
Max Planck Institute for Mathematics, Vivatsgasse 7, 53111 Bonn, Germany
Department of Mathematics, Faculty of Sciences, University of Ostrava, 30 dubna 22, 701 03 Ostrava 1, Czech Republic
Abstract.
We prove unconditionally that for each , the difference is positive for of odd primes and negative for .
Key words and phrases:
Euler totient, prime, twin prime, Bateman–Horn conjecture, Twin Prime Conjecture, Brun Sieve
2010 Mathematics Subject Classification:
11A41, 11A07, 11N36, 11N37
SRG supported by NSF grant DMS-1265973, a David L. Hirsch III and Susan H. Hirsch Research Initiation Grant, and the Budapest Semesters in Mathematics (BSM) Director’s Mathematician in Residence (DMiR) program.
F. L. was supported in part by grants CPRR160325161141 and an A-rated researcher award both from the NRF of South Africa and by grant no. 17-02804S of the Czech Granting Agency.
1. Introduction
In what follows, always denotes an odd prime number. The inequality appears to hold for an overwhelming majority of twin primes , and to be reversed for small, but positive, proportion of the twin primes [4]. To be more specific, if the Bateman–Horn conjecture is true, then the inequality above holds for at least 65.13% of twin prime pairs and is reversed for at least of pairs. Numerical evidence suggests, in fact, that the ratio is something like 98% to 2%. In other words, for an overwhelming majority of twin prime pairs , it appears that the first prime has more primitive roots than does the second.
Based upon numerical evidence, it was conjectured in [4] that this bias disappears if only is assumed to be prime. That is, for of primes and the inequality is reversed for of primes. We prove this unconditionally and, moreover, we are able to handle wider spacings as well. If all primality assumptions are dropped, then it is known that asymptotically of the time. This follows from work of Shapiro, who considered the distribution function of [11].
Let denote the number of primes at most and let denote asymptotic equivalence. The Prime Number Theorem ensures that . Our main theorem is the following.
Theorem 1.1**.**
Let be a positive integer. As we have the following:
- (a)
. 2. (b)
. 3. (c)
.
A curious phenomenon occurs in (c), in the sense that the decay rate relative to depends upon in a peculiar manner. Theorem 3.1 shows that
[TABLE]
This does not appear to be an artifact of the proof since it is borne out in numerical computations (see Table 1) and is consistent with the Bateman–Horn conjecture.
We first prove Theorem 1.1 in the case . This is undertaken in Section 2 and it comprises the bulk of this article. For the sake of readability, we break the proof into several steps which we hope are easy to follow. In Section 3, we outline the modifications necessary to treat the case . This approach permits us to focus on the main ingredients that are common to both cases, without getting sidetracked by all of the adjustments necessary to handle the general case.
2. Proof of Theorem 1.1 for
2.1. The case of equality
Our first job is to show that the set of primes for which has a counting function that is . We need the following lemma, which generalizes earlier work by Erdős, Pomerance, and Sárközy [3] in the case . The upper bound (b) in the following was strengthened in a preprint of Yamada [14].
Lemma 2.1** (Graham–Holt–Pomerance [6]).**
Suppose that and have the same prime factors. Let and suppose that
[TABLE]
are primes that do not divide .
- (a)
Then satisfies . 2. (b)
For fixed and sufficiently large , the number of solutions to that are not of the form above is less than .
Consider the case and , in which is prime. Suppose that and have the same prime factors and let . Let us also suppose that is a positive integer such that
[TABLE]
are primes and
[TABLE]
Since and have the same prime factors, they are both powers of . Then and , so . Consequently,
[TABLE]
are prime. Reduction modulo reveals that at least one of them is a multiple of . The only prime triples produced by (2.3) are and , in which and , respectively. Consequently,
[TABLE]
This is Theorem 1.1.c in the case .
2.2. A comparison lemma
Instead of comparing and directly, it is more convenient to compare the related quantities
[TABLE]
in which is prime. Let
[TABLE]
which we claim is nonzero for . Let denote the largest prime factor of . Since
[TABLE]
it follows that is the largest prime factor of the denominator of . Since , the condition implies that and are both powers of . Thus, holds only for .
Something similar to the following lemma is in [4], although there it was assumed that is also prime. The adjustment for is discussed in Section 3.
Lemma 2.8** (Comparison Lemma).**
The set of primes for which and have the same sign has counting function asymptotic to as .
Proof.
In light of (2.4), it suffices to show that
[TABLE]
on a set of full density in the primes. The forward direction is clear, so we focus on the reverse. If the inequality on the right-hand side of (2.9) holds, then
[TABLE]
because and are even. Since is even for , it follows that . Now appeal to (2.4) to see that strict inequality holds on a set of full density in the primes. ∎
2.3. Some preliminaries
In our later study of the quantity , we need to avoid four classes of inconvenient primes. To make the required estimates, we need some notation. Let be large, let , and define
[TABLE]
Then , in which
[TABLE]
is Chebyshev’s function. Since the Prime Number Theorem asserts that as , we obtain
[TABLE]
for sufficiently large . For a positive integer , let denote the largest divisor of that is -smooth:
[TABLE]
On occasion, we will need the Brun sieve. Let be a collection of distinct irreducible polynomials with positive leading coefficients. An integer is prime generating for this collection if each is prime. Let denote the number of prime-generating integers at most and suppose that does not vanish identically modulo any prime. As ,
[TABLE]
in which the implied constant depends only upon and [13, Thm. 3, Sect. I.4.2]. The upper bound obtained in this manner has the same order of magnitude as the prediction furnished by the Bateman–Horn conjecture [1].
2.4. Inconvenient primes of Type 1
Let
[TABLE]
We will prove that
[TABLE]
Suppose that . Then (2.13) and the definition of yield a divisor of such that and . These conditions provide a prime power with least exponent such that
[TABLE]
Indeed, if every -smooth prime power that divides satisfies , then (2.11) would imply that , a contradiction. We also observe that the second two conditions in (2.15) ensure that .
We claim that for large either or has a prime power divisor with in the interval . Since
[TABLE]
it follows that divides one of , . There are two cases to consider.
- •
If , then divides one of , . Since we aim to prove (2.14) as , we may assume that since for , the third statement in (2.15) implies . Next observe that (2.15) implies that . The minimality of in (2.15) ensures that . Thus, has (since ), and divides one of , .
- •
If is odd, then divides or . The minimality of ensures that and the second statement in (2.15) yields
[TABLE]
For large , we conclude that one of , has a prime power divisor with in .
Let denote the number of prime powers with that are at most . Since with implies either and , or and , the Prime Number Theorem implies that
[TABLE]
as . Let denote the number of primes at most that are congruent to modulo . Then the Brun sieve implies
[TABLE]
as . This is the desired estimate (2.14).
2.5. Inconvenient primes of Type 2
Fix a large and define the function
[TABLE]
in which is prime. Let
[TABLE]
We claim that
[TABLE]
as . This will follow from an averaging argument similar to [7, Lem. 3].
The Brun sieve with provides
[TABLE]
uniformly for in the specified range [13, Thm. 3, Sect. I.4.2]. We use the trivial estimate
[TABLE]
We also require the upper bound
[TABLE]
which is afforded by the Prime Number Theorem. As , we have
[TABLE]
Consequently,
[TABLE]
which implies (2.16).
2.6. Inconvenient primes of Type 3
Let denote the number of distinct prime factors of and the number of distinct prime factors of . Define
[TABLE]
We claim that
[TABLE]
as . Although this is essentially a result of Erdős [2], we sketch a simpler proof that is easily generalized since we later need to handle instead of .
If , then for large we have
[TABLE]
because . Thus, either
[TABLE]
or
[TABLE]
for sufficiently large . Without loss of generality, we may suppose that
[TABLE]
Then
[TABLE]
and similarly if occurs in (2.19).
We next require the following “Turán–Kubilius”-type result; see [8, Lem. 2], [10, §V.5, 1, p. 159]. To study for requires a slight generalization; see Lemma 3.2 in Section 3 for a statement and sketch of the proof.
Lemma 2.21** (Motohashi).**
.
Now return to (2.20), apply Lemma 2.21, and conclude that
[TABLE]
This yields the desired estimate (2.18).
2.7. Inconvenient primes of Type 4
Let
[TABLE]
We claim that
[TABLE]
as . Since , the condition
[TABLE]
implies that
[TABLE]
A standard application of the Siegel–Walfisz theorem yields
[TABLE]
see [10, §I.28, 1b, p 30] or [9]. The same holds with replaced by ; the adjustments necessary to handle are discussed in Section 3. Thus,
[TABLE]
which yields (2.23).
2.8. Convenient primes
Throughout the remainder of the proof, we let , in which is large, and we suppose that
[TABLE]
We say that such a prime is convenient. Because , we have
[TABLE]
in which
[TABLE]
every prime factor of is at most , and every prime factor of is greater than . In particular, .
We claim that
[TABLE]
for sufficiently large . In light of (2.7), it follows that is the largest prime factor of the denominator of . If , then since . Thus, and are powers of and
[TABLE]
because . This is a contradiction for .
For convenient , we have
[TABLE]
We note that because otherwise by (2.7). Since , it would follow that and are powers of , which occurs only for . Lemma 2.8 ensures that has the same sign as on a set of full density in the primes.
Since , for large we may use the inequality
[TABLE]
to obtain
[TABLE]
in which the implied constant in the preceding can be taken to be . A similar inequality holds if is replaced by . Consequently,
[TABLE]
in which the implied constant can be taken to be .
2.9. Weird primes
A convenient prime is weird if
[TABLE]
that is, if and have opposite signs (the second factor is nonzero if is large; see (2.27)). If this occurs, then (2.28) tells us that
[TABLE]
In general, one expects the sign of to be determined by small primes; that is, those primes at most . If is weird, then the primes that divide conspire to overthrow the contribution of the small primes.
We say that a pair of positive integers is weird if
[TABLE]
What is the reason for the appearance of the number in the preceding? If , then considering modulo and reveals that . If , then and hence and . Consequently, if we are searching for primes for which , it makes sense for us to insist that is divisible by .
Lemma 2.30**.**
Let and be a multiple of .
- (a)
The number of pairs with and is . 2. (b)
If and , then the number of weird pairs with is
[TABLE]
Proof.
(a) In what follows, denotes the -adic valuation function. Write
[TABLE]
in which is a set of primes that contains , , and . Since , it follows that
[TABLE]
For each of the primes in , there are two possible choices for . Consequently, there are possible pairs .
(b) Let
[TABLE]
and
[TABLE]
be weird, where are odd, and let . Suppose toward a contradiction that and . Then (2.29) says that
[TABLE]
since . The implied constant in (2.32) is , in light of (2.29) and the absorption of in (2.31). Similar reasoning yields an analogous expression for , with the same implied constant.
Let be the smallest prime divisor of . Use the inequality
[TABLE]
and the fact that (2.32) holds for and to deduce that
[TABLE]
Since and , we have and hence
[TABLE]
This is a contradiction if .
Hence, the set of odd components of the parts as ranges over weird pairs has the property that no two divide each other. Identifying with the set of its odd prime factors, no two and , as subsets, are contained one in another. Sperner’s theorem111A collection of sets that does not contain and for which is a Sperner family. If is a Sperner family whose union has a total of elements, then [12]. from combinatorics and Stirling’s formula ensure that the number of such , and hence the number of such pairs , is
[TABLE]
∎
2.10. Conclusion
We have shown that the number of inconvenient primes at most is and hence they can be safely ignored. Each convenient prime gives rise to a pair as in (2.25).
Suppose that is large. Let be a multiple of with
[TABLE]
We wish to count the primes for which . Denote this number by . To complete the proof of Theorem 1.1 in the case , it suffices to show that of primes at most have and have , and that the implied constant is uniform for all as above.
Choose a pair such that and . We want to count the primes such that and ; that is, such that
[TABLE]
Apply the Chinese Remainder Theorem with moduli or , depending upon which of is exactly divisible by , to see that belongs to an arithmetic progression , with . However, we also want
[TABLE]
For this, we need to work modulo
[TABLE]
To ensure that (2.34) holds, we do the following:
- •
If , then we then want
[TABLE]
for some . Here, according to whether divides or , respectively. For each , there are possibilities for and hence there are possibilities for modulo .
- •
If , then we want for some . For each , there are possibilities for modulo .
Thus, the number of progressions modulo that can contain a prime for which (2.34) occurs is
[TABLE]
By (2.12), the common modulus of all these progressions satisfies
[TABLE]
for large . The Siegel–Walfisz theorem says that the number of primes in each progression is asymptotically
[TABLE]
for some . Summing up over the number of progressions (or, more precisely, multiplying the (2.36) by the number of acceptable progressions (2.35)), and using the fact that , we get a count of
[TABLE]
The count depends on but not on the pair of divisors of . We now apply Lemma 2.30 and obtain
[TABLE]
Although it is not crucial to our proof, we show in Subsection 2.11 that
[TABLE]
where the index runs over all for which (2.33) holds, because the computation is of independent interest.
The product in (2.37) is less than and bounded below by
[TABLE]
by Mertens’ asymptotic formula [10, §VII.29.1b, p. 259]. Since
[TABLE]
we examine the main term in (2.37) and conclude that
[TABLE]
On the other hand, the error term in (2.37) is
[TABLE]
There is a symmetry between non-weird pairs with
[TABLE]
given by the transposition . Indeed, we could return to (2.26) and insist that and instead. The subsequent asymptotic estimates go through in exactly the same manner. Via this transposition, we obtain an asymptotically equal count between the convenient primes corresponding to and the convenient primes corresponding to . If only non-weird pairs are taken into account, for fixed this symmetry gives an asymptotically equal count of convenient primes with and with .
Lemma 2.30 ensures that the number of weird pairs with is . As , we see from (2.37) that the number of primes at most that arise from some weird pair is
[TABLE]
Recall that the non-weird, convenient primes have full density in the set of primes. Of such primes , the argument above shows that an asymptotically equal amount have versus (recall that only for ). This completes the proof of Theorem 1.1 in the case . ∎
2.11. Sanity check
Before extending the preceding proof to the case , it is helpful to perform a quick sanity check. Our goal here is to prove (2.38). In light of (2.37), it suffices to prove that
[TABLE]
in which the index runs over all for which (2.33) holds. In particular, (2.38) holds and the preceding product does not run over . These developments seems remarkably fortuitous. Let us provide an independent derivation of (2.40), which will help corroborate some of the fine details in the preceding proof.
First write , in which , and sum to obtain
[TABLE]
Now write and sum over getting
[TABLE]
For the rest, we use multiplicativity to say that the sum in (2.40) is
[TABLE]
However, this is not strictly correct since the sum above stops at the largest power . Moreover, the sum runs over all without restrictions such as or . We deal with these omissions shortly. For the time being, let us ignore these restrictions. Then the amount inside the Euler factor is
[TABLE]
which cancels with the outside .
Now we must examine the errors. There are essentially four types:
- (a)
In each Euler factor we only sum up to , in which is maximal such that . By extending the sum to infinity we incurred an error of
[TABLE]
For , the actual Euler factor is
[TABLE]
Similar considerations apply for . The total multiplicative error is
[TABLE] 2. (b)
We consider only such that . Let the set of remaining be denoted . For , we have
[TABLE]
Applying this inequality and extending then the sum over all possible , the piece of the sum over is at most
[TABLE]
We separate out the power of in as with getting an Euler factor corresponding to of
[TABLE]
Then we separate out a factor of from writing it as , getting an Euler factor corresponding to of
[TABLE]
For the remaining primes , we form the Euler product getting
[TABLE]
The factor inside the parentheses is
[TABLE]
Multiply this by the outside factor and get
[TABLE]
Taking the product of the factors above over , we get a convergent product. Consequently,
[TABLE] 3. (c)
We need to consider with . From the preceding material and (2.39), we have
[TABLE]
We first deal with with many prime factors. Consider the multiplicative function defined for prime powers with by
[TABLE]
If , then
[TABLE]
We have
[TABLE]
in which we have used Mertens’ theorem [10, §VII.28.1b]. In the sum , the ratio of two consecutive terms is
[TABLE]
for and large , so the first term dominates. With , the contribution of with is at most
[TABLE]
in which . Multiplying this by (see (2.39))
[TABLE]
we obtain
[TABLE]
We use a similar argument for with . In this case, let . We have to deal with
[TABLE]
For and large , the ratio of any two consecutive terms above is
[TABLE]
it follows that the last term dominates. Thus, this sum is at most
[TABLE]
in which where . Consequently, the contribution of with to the sum defining is
[TABLE]
Putting everything together we obtain (2.40), which is equivalent to (2.38).
3. Proof of Theorem 1.1 for
The proof for follows largely on the lines of the case , although there are a number of minor adjustments that must be made. For example, in Lemma 2.30 we assumed that is a multiple of . Elementary considerations reveal that the following adjustments are necessary for various values of :
- (a)
is coprime to all primes that divide . 2. (b)
is odd if is even. 3. (c)
is a multiple of if is odd. 4. (d)
is a multiple of if and only if is not.
More significant modifications are discussed below.
3.1. The case of equality
We need a variant of the inequality (2.4). The estimate provided by the following theorem involves two special cases. Numerical evidence strongly suggests that this distinction is not simply a byproduct of our proof; see Table 1. If we replace the use of the Brun sieve in what follows with an appeal to the Bateman–Horn conjecture [1], then the larger of the two upper bounds becomes an asymptotic equivalence if the appropriate constant factor is introduced.
Theorem 3.1**.**
For each ,
[TABLE]
Proof.
In Lemma 2.1, let and , in which is prime. Suppose that and have the same prime factors. Since
[TABLE]
it follows that is not divisible by any prime factor of and hence . Thus, and for some . Then and
[TABLE]
If , then is even and (3.1) implies that , a contradiction. Thus, the upper bound from Lemma 2.1 applies in this case.
If , then and . Then
[TABLE]
and we count for which are simultaneously prime. Let
[TABLE]
If is odd, then
[TABLE]
There are three possibilities:
- (a)
If , then is not prime and no prime triples are produced. 2. (b)
If , then for each odd , at most one prime triple is produced.222The only odd for which a prime triple arises in this manner are , from which we obtain the triples , , , and . 3. (c)
If , then and only the prime triple is produced.
In each case, the upper bound from Lemma 2.1 dominates.
If is even, then none of vanish identically modulo any prime. The Brun sieve says that the number of for which are prime is , which dominates the estimate from Lemma 2.1. ∎
3.2. A more general comparison lemma
The next adjustment that is required is an analogue of the comparison lemma (Lemma 2.8). This turns out to be more involved than expected. In fact, we first need a generalization of the “Turán–Kubilius”-type result from Lemma 2.21. Since this is a minor variant of an existing result, we only sketch the proof.
Lemma 3.2**.**
For each , .
Proof.
Since , apply the Siegel–Walfisz theorem to obtain
[TABLE]
in which the term arises from an application of Mertens’ theorem [10, §VII.28.1b]. Now expand and apply the preceding. ∎
The direct generalization of Lemma 2.8 for runs into trouble. If is sufficiently large, then the in (2.10) becomes too large for the same argument to work. The evenness of is no longer sufficient to push the argument through. Fortunately, we are able to employ the following lemma instead.
Lemma 3.3**.**
For ,
[TABLE]
Proof.
Fix . Let denote the number of distinct prime divisors of . Then since . If
[TABLE]
then
[TABLE]
Thus, it suffices to show that the set of primes for which (3.4) fails has a counting function that is . Let be so large that satisfies
[TABLE]
and let
[TABLE]
Let denote the number of distinct prime factors of . If , then
[TABLE]
and hence
[TABLE]
Then
[TABLE]
Lemma 3.2 ensures that
[TABLE]
Thus,
[TABLE]
∎
Our replacement for the comparison lemma is the following. Since the exceptional set is , it will not affect the proof of Theorem 1.1 in the case .
Lemma 3.5**.**
For each , the set of primes for which and
[TABLE]
have the same sign has counting function .
Proof.
By Theorem 3.1, it suffices to show that the set of primes for which
[TABLE]
has counting function . The forward implication is straightforward, so we focus on the reverse. If the inequality on the right-hand side of (3.7) holds, then
[TABLE]
Let and apply lemma Lemma 3.3 to conclude that for in a set with counting function . ∎
3.3. Final ingredient
The only other ingredient necessary to consider is a replacement for the estimate (2.24). We include the proof for completeness.
Lemma 3.8**.**
.
Proof.
Let denote the sum of the divisors of . Then
[TABLE]
see [10, §I.3.5]. The Siegel–Walfisz theorem provides so that
[TABLE]
∎
Acknowledgment. We thank the referee for suggestions which improved the quality of our paper.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Paul T. Bateman and Roger A. Horn, A heuristic asymptotic formula concerning the distribution of prime numbers , Math. Comp. 16 (1962), 363–367. MR 0148632
- 2[2] P. Erdős, On the normal number of prime factors of p − 1 𝑝 1 p-1 and some related problems concerning Euler’s φ 𝜑 \varphi -function , Quarterly J. Math. 6 (1935), no. 1, 205–213.
- 3[3] P. Erdős, C. Pomerance, and A. Sárközy, On locally repeated values of certain arithmetic functions. II , Acta Math. Hungar. 49 (1987), no. 1-2, 251–259. MR 869681
- 4[4] Stephan Ramon Garcia, Elvis Kahoro, and Florian Luca, Primitive root discrepancy for twin primes , Exp. Math., (accepted). http://arxiv.org/abs/1705.02485 .
- 5[5] S. W. Golomb, Powerful numbers , Amer. Math. Monthly 77 (1970), 848–855. MR 0266878
- 6[6] S. W. Graham, Jeffrey J. Holt, and Carl Pomerance, On the solutions to φ ( n ) = φ ( n + k ) 𝜑 𝑛 𝜑 𝑛 𝑘 \varphi(n)=\varphi(n+k) , Number theory in progress, Vol. 2 (Zakopane-Kościelisko, 1997), de Gruyter, Berlin, 1999, pp. 867–882. MR 1689549
- 7[7] Florian Luca and Carl Pomerance, On some problems of Ma̧kowski-Schinzel and Erdős concerning the arithmetical functions φ 𝜑 \varphi and σ 𝜎 \sigma , Colloq. Math. 92 (2002), no. 1, 111–130. MR 1899242
- 8[8] Yoichi Motohashi, On a property of p − 1 𝑝 1 p-1 , Proc. Japan Acad. 45 (1969), 639–640. MR 0266880
