WorksMathematics
Infinite families and sporadic solutions of the equation
Abstract
Ranjan and Singh proved that for every composite which is not twice an odd prime, is at least one plus the sum of over the prime divisors of , with equality exactly for . \new{We study the weighted equation . We determine the parameters admitting infinite families of solutions, prove that all remaining solutions are finite in number and arise from an explicit linear mechanism, and compute them exactly in a range of parameters; the finiteness of becomes a special case. We also settle the analogous equations for the divisor functions and and for the Jordan totients, and, from known results on the sum of the prime divisors, derive the full asymptotic expansion of the average deficiency.} \K{In the range , the composite solution set is determined completely\V{, and the number and the size of the sporadic solutions are shown to be bounded by polynomials in }.} \B{Finally, replacing the prime values by their iterates , we determine all solutions of : the solution sets are , and, for every , ; for the weighted iterated equation we exhibit an infinite family governed by the safe primes.
Introduction
Euler’s totient function counts the positive integers up to that are coprime to . Like most multiplicative functions its behaviour is governed by the prime factorization of the argument, and a recurring theme in elementary number theory is the classification of the integers at which an arithmetic identity, generically true for primes or generically failing for composites, admits exceptional solutions. The prototype is Lehmer’s still-open problem [7] of whether can hold for composite ; a solved relative is Subbarao’s theorem [9] that his primality congruence admits exactly the composite solutions .
Ranjan and Singh [8] recently added a new instance to this family. Observing that
they asked for which composite numbers such an identity can hold and proved:
Theorem 1.1 (Ranjan–Singh [8]). Let be a composite number which is not twice an odd prime, and let be its distinct prime divisors. Then
with equality if and only if . Moreover for every odd prime .
Their proof rests on two elementary product–sum inequalities borrowed from Ecker [4]: for (equality if and only if ), and whenever and .
The purpose of the present paper is fourfold. First (§3) we treat the analogous equation
for the divisor-count function , the sum-of-divisors function , and the Jordan totients , obtaining in each case a complete answer. The outcomes are strikingly different from one function to the next: for the composite solution set is the infinite family ; for and for () it is empty; for it is the finite set . Second (§ 4–§ 5) we study weighted and simultaneous versions of (2), where parity constraints, an exact classification of the infinite solution families, and a finiteness theorem give a complete structure theory—from which the finiteness of the Ranjan–Singh exceptional set follows as a corollary; in the range , the solution sets are then computed completely, and uniform polynomial bounds in are proved. Third (§ 6) we measure how far a typical integer is from satisfying (1): a simple identity reduces the average deficiency to classical results of Alladi–Erdős and De Koninck–Ivić, which yields its full asymptotic expansion. Fourth (§ 7) we replace the prime values in (1) by their iterates and determine all solutions for every : the monotonicity of the iterates reduces each case to Theorem 1.1, and the solution sets stabilise at for all .
Notation and preliminaries
Throughout, denotes the canonical factorization of an integer , with , and is the number of distinct prime divisors of . We write , , and for
the Jordan totient, so that and [10]. All three of , , and every are multiplicative. On primes,
We shall use the elementary fact that is even for every , the fact that if and only if is prime, and the bound for even . For , denotes the -fold iterate of , with .
The equation for , and
The divisor-count function
Since , equation (2) for reads .
Theorem 3.1. A composite number satisfies if and only if for some prime .
Proof. If is a prime power, the equation reads , i.e. ; every is a solution and no other prime power is.
Suppose now . Since each exponent satisfies ,
For we get , because is positive at and increasing; hence no solutions. For the equation demands , a prime value of ; but with both factors is composite. No solutions exist with , which completes the proof.
Thus, in contrast with the finite exceptional set of Theorem 1.1, the -analogue possesses the infinite solution family (the squares of primes, OEIS A001248).
The sum-of-divisors function
For the outcome is the opposite extreme: the analogue of (1) holds strictly for every composite number, with no exceptional set whatsoever.
Theorem 3.2. For every composite ,
and consequently the equation has no composite solution.
Proof. Because is composite, the integers are pairwise distinct divisors of ; hence
On the other hand . Subtracting,
since for all .
Jordan totients of order
For the higher Jordan totients the left-hand side of (2) grows polynomially in while the right-hand side grows only with the prime support, and again no composite solutions survive.
Theorem 3.3. Let . For every composite ,
so the equation has no composite solution.
Proof. Put and note for .
If with , then , the last inequality because implies .
If , then by multiplicativity , and it suffices to prove
For : , which rearranges to . For , induction: if (3) holds for terms, then .
Remark 3.4. The three theorems above, together with Theorem 1.1, exhibit the full spectrum of behaviours of equation (2) within one natural family of multiplicative functions: an infinite solution set (), a finite nonempty one (), and empty ones (, all with ). Heuristically, the size of the solution set is governed by the growth of against : the slower the growth, the richer the solution set.
The weighted equation: a complete structure theory
Consider, for integer parameters and , the weighted equation
of which Theorem 1.1 is the case . Write for the prime-support sum, so that (4) reads . In this section we determine the structure of the composite solution set of (4) completely: parity constraints (Theorem 4.1), an exact classification of the infinite families (Theorem 4.2), and a finiteness theorem for what remains (Theorem 4.4). The structure theorem is then made completely explicit in the range , (Theorem 4.12), and uniform polynomial bounds in are derived from it (Theorem 4.13).
Parity constraints
Theorem 4.1 (Parity constraints). Let be a composite solution of (4). Then: (i) if is odd and is even, no such exists; (ii) if and are both odd, is even; (iii) if is even and is odd, is odd; (iv) if and are both even, no parity restriction holds.
Proof. For the value is even. On the other side, is the only odd value of at a prime, whence and the right-hand side of (4) is congruent to modulo 2. Requiring it to be even yields exactly the four cases. Case (iv) is realized: has both the even solution 8 and the odd solution 9.
Classification of the infinite families
The exclusion of in Theorem 1.1 is not an accident of the proof: the integers form an exact infinite family for the neighbouring pair , since . This phenomenon is completely general.
Theorem 4.2 (Infinite families). Let be fixed. Every integer , with prime and , satisfies (4) if and only if
We call such a pair matched, with modulus . For each there are only finitely many matched moduli, since has finitely many solutions .
Proof. For , multiplicativity gives and . Equation (4) becomes the identity in
which holds for infinitely many (equivalently, for all admissible) primes if and only if the coefficients of and the constant terms match: and .
For example, the matched pairs in the range , are
| family | ||
| 2 | ||
| 4 | ||
| 3 | ||
| 6 | ||
| 8 |
Table 4.
and the pair of Theorem 1.1 is unmatched: forces , which would require .
Finiteness outside the families, and the sporadic mechanism
Lemma 4.3. Let be a composite solution of (4), let be the largest prime factor of and write with , . If then
while if then
Proof. Immediate from and .
Equation (5) is the engine of the whole subject. When is a matched modulus both sides vanish and is unconstrained: this reproduces the infinite families. Otherwise is determined by , and the point of the next theorem is that only finitely many can produce a legitimate .
Theorem 4.4 (Structure theorem). For every pair , the set of composite solutions of (4) is the union of the families over the finitely many matched moduli , together with a finite sporadic set . In particular, if is unmatched—as is —the composite solution set is finite.
Proof. Let be a solution as in Lemma 4.3 which does not belong to a matched family. We use the elementary bounds and , and we note that exceeds every prime factor of (being the largest prime factor of , and coprime to ); thus, with the largest prime factor of (set if ), we have and .
Case . If then, being unmatched, and (5) is contradictory; besides, already confines to a finite set. So assume ; then (5) determines
at most one prime for each . If moreover , the requirement forces
hence .
Since grows faster than , only finitely many qualify; the finitely many with are handled trivially. Each surviving contributes at most one solution.
Case . Here
If the second factor is nonpositive, then , which bounds , and . Otherwise it is at least 1, and since , dividing by gives
As , this bounds , then , hence and . In all cases only finitely many solutions arise.
Corollary 4.5. The finiteness of the exceptional set in Theorem 1.1 is a special case of Theorem 4.4: the pair is unmatched, and its sporadic set is . The elements 12 and 30 arise from (5): for , , and for , ; the element arises from the case of Lemma 4.3, with : .
Corollary 4.6. If is odd and is even—for instance —equation (4) has no composite solution at all (Theorem 4.1(i)).
Exact determination of the sporadic sets
Theorem 4.4 is effective, and for the five matched pairs above the bounds are small enough to compute the sporadic sets exactly.
Lemma 4.7 (Explicit bounds). Let be one of the five matched pairs (so , ), and let be a sporadic composite solution, decomposed as in Lemma 4.3. Then and , hence ; moreover and .
Proof. Suppose first ; then and , where is the largest prime factor of . One checks that each of the five pairs has a unique matched modulus; hence if , either lies in the matched family or and (5) fails. If then , and . If , then from (5) and ,
whence . Since as soon as , we conclude and , hence since
is even; the bound follows from . Every prime then satisfies , and a direct check gives (the maximum being ); therefore .
Now let . If we are in a finite explicit range. Otherwise, as in the proof of Theorem 4.4, ; the same comparison with gives , hence . Thus , so that and .
Theorem 4.8 (Exact sporadic sets). For the five matched pairs in the range , , the sporadic sets are:
Consequently the composite solutions of are exactly the integers ; those of exactly the ; those of exactly the ; those of exactly and the ; and those of exactly and the .
Proof. By Lemma 4.7 every sporadic solution arises, through the canonical decomposition , from a triple in the explicit finite range , , satisfying the mechanism of Lemma 4.3. Enumerating all such triples for each of the five pairs, discarding those whose product lies in the matched family, yields precisely the sets displayed. (Each surviving element is then verified directly; e.g. for : , and .)
The complete census in the range ,
The bounds of Lemma 4.7 concern the five matched pairs only. We now carry out the same programme for all 126 pairs , , following the canonical decomposition of Lemma 4.3; we use freely that , where denotes the largest prime factor of ( if ). The first step is to read Theorem 1.1 as a universal inequality.
Lemma 4.9. For every positive integer , , with equality if and only if with an odd prime.
Proof. For , prime and the inequality is immediate (, , ). If is composite and not twice an odd prime, Theorem 1.1 gives , hence .
Proposition 4.10 (Case ). Let , , and let (with , so ) be a sporadic composite solution of (4).
If , then , and .
If , then and ; moreover if , if , and if .
The case produces no sporadic solution. The resulting solutions are listed in Tables 1, Table 2 and Table 3.
| Prime fact. | ||||||
| 6 | 2 | 3 | 5 | 30 | ||
| 6 | 2 | 3 | 7 | 42 | ||
| 6 | 2 | 3 | 11 | 66 | ||
| 6 | 2 | 3 | 13 | 78 | ||
| 10 | 4 | 5 | 7 | 70 | ||
| 10 | 4 | 5 | 11 | 110 | ||
| 10 | 4 | 5 | 13 | 130 | ||
| 10 | 4 | 5 | 17 | 170 | ||
| 10 | 4 | 5 | 19 | 190 | ||
| 10 | 4 | 5 | 23 | 230 | ||
| 12 | 4 | 3 | 5 | 60 | ||
| 12 | 4 | 3 | 7 | 84 | ||
| 12 | 4 | 3 | 11 | 132 | ||
| 12 | 4 | 3 | 13 | 156 | ||
| 12 | 4 | 3 | 17 | 204 | ||
| 12 | 4 | 3 | 19 | 228 | ||
| 14 | 6 | 7 | 11 | 154 | ||
| 14 | 6 | 7 | 13 | 182 | ||
| 14 | 6 | 7 | 17 | 238 | ||
| 14 | 6 | 7 | 19 | 266 | ||
| 14 | 6 | 7 | 29 | 406 | ||
| 14 | 6 | 7 | 31 | 434 | ||
| 14 | 6 | 7 | 37 | 518 | ||
| 14 | 6 | 7 | 41 | 574 | ||
| 14 | 6 | 7 | 43 | 602 | ||
| 18 | 6 | 3 | 5 | 90 | ||
| 18 | 6 | 3 | 7 | 126 | ||
| 18 | 6 | 3 | 11 | 198 | ||
| 18 | 6 | 3 | 13 | 234 | ||
| 18 | 6 | 3 | 17 | 306 | ||
| 18 | 6 | 3 | 19 | 342 | ||
| 18 | 6 | 3 | 23 | 414 | ||
| 15 | 8 | 6 | 7 | 105 | ||
| 15 | 8 | 6 | 11 | 165 | ||
| 15 | 8 | 6 | 13 | 195 | ||
| 15 | 8 | 6 | 17 | 255 | ||
| 15 | 8 | 6 | 19 | 285 | ||
| 15 | 8 | 6 | 23 | 345 | ||
| 20 | 8 | 5 | 7 | 140 | ||
| 20 | 8 | 5 | 11 | 220 | ||
| 20 | 8 | 5 | 13 | 260 | ||
| 20 | 8 | 5 | 17 | 340 | ||
| 20 | 8 | 5 | 19 | 380 | ||
| 24 | 8 | 3 | 5 | 120 | ||
| 24 | 8 | 3 | 7 | 168 | ||
| 24 | 8 | 3 | 11 | 264 | ||
| 24 | 8 | 3 | 13 | 312 | ||
| 22 | 10 | 11 | 13 | 286 | ||
| 22 | 10 | 11 | 17 | 374 | ||
| 22 | 10 | 11 | 19 | 418 | ||
| 36 | 12 | 3 | 5 | 180 |
Table 2. Sporadic solutions with and (, ).
| Prime fact. | ||||||
| 30 | 8 | 7 | 7 | 210 | ||
| 30 | 8 | 7 | 11 | 330 | ||
| 30 | 8 | 7 | 13 | 390 | ||
| 30 | 8 | 7 | 17 | 510 | ||
| 30 | 8 | 7 | 19 | 570 | ||
| 30 | 8 | 7 | 23 | 690 | ||
| 42 | 12 | 9 | 11 | 462 |
Table 3. Sporadic solutions with and (, ).
Proof. If , equation (5) forces , so is a matched modulus and lies in its family: no sporadic solution arises.
(i) Since takes no odd value except 1, gives , i.e. , and . Hence , and (5) gives .
(ii) Since we have , and . Dividing (5) by ,
whence . If then , so . Finally gives , i.e. , , according as . For each admissible , (5) determines , and the enumeration yields the three tables.
Proposition 4.11 (Case ). Let , , and let with be a composite solution of (4). Then , and:
(i) if , then is one of the seven triples , , , , , , , i.e. ;
(ii) if , then .
The corresponding pairs are listed in Tables 4 and Table 5.
| 16 | 1 | 2 | 4 | ||
| 32 | 1 | 2 | 5 | ||
| 27 | 1 | 3 | 3 | ||
| 54 | 2 | 3 | 3 | ||
| 72 | 8 | 3 | 2 | ||
| 75 | 3 | 5 | 2 | ||
| 100 | 4 | 5 | 2 | ||
| 150 | 6 | 5 | 2 | ||
| 49 | 1 | 7 | 2 | ||
| 98 | 2 | 7 | 2 |
Table 5. Solutions with and (Proposition 4.11(ii)).
Proof. Write (4) as . By Lemma 4.9, , hence
Since , this gives , which fails for every prime , since for . Thus .
(i) If then , so and unless . For , and gives . For , and with give . For , and give . For each of the seven triples, is an affine function of , tabulated in Table 4.
(ii) If , inequality (6) bounds everything: for (), , so and (the cases being in (i)); for and , , so ; gives , hence , while is impossible; for , and , so , and ( being in (i)); for , and , so and . The only remaining triples have , i.e. with , ; then (4) reads , whence and . The pairs with for these ten integers are those of Table 5. ∎
Theorem 4.12 (Complete census). Let and . The composite solution set of (4) is the union of the matched family of Theorem 4.2 (for the five matched pairs) and of the sporadic set displayed in Table 6. There are exactly 200 sporadic pairs , involving 116 distinct integers , the largest being for ; one has , with equality only for , and for 53 of the 126 pairs.
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 15 | 6 | 24, 50, 120, 220, 510 | ||||
| 28, 70 | 18, 40, 126 | |||||
| 14 | 12, 154 | 161 | ||||
| 6, 20 | 24, 140, 406 | |||||
| 10; | 35 | 18 | 45 | 9, 36, 168, 260, 570 | ||
| 12, 60, 110 | 50, 198, 330, 434 | |||||
| 77, 90, 182, 210; | 9, 63 | 4, 25, 255 | ||||
| 18, 84, 130 | 4, 36, 120, 234 | |||||
| 55 | 4, 9 | 203 | 8, 48, 150, 374 | |||
| 4, 24 | 8 | |||||
| 0 | 4, 18 | 9, 65 | 8, 36, 45, 50, 91, 105, 126 | 25, 99, 165, 217 | 54, 98, 285 | |
| 1 | 4, 12, 30 | 8, 40, 132, 170 | 48, 306, 390, 518 | |||
| 2 | 15 | 8, 9, 24, 60, 70 | 117 | 16, 80, 264, 340, 690 | ||
| 3 | 8, 18, 20, 42 | 36, 56, 90, 156, 190 | 16, 54, 168, 342 | |||
| 4 | 9, 21 | 35 | 85 | 16, 25, 48, 63, 120, 140, 238 | 75, 187 | |
| 5 | 24, 28 | 16, 50 | 150, 220, 286, 574 | |||
| 6 | 16, 36, 40, 84 | 45, 95 | 54 | 153, 195, 259 | 27, 49, 72, 112, 180, 312, 380, 418, 462 | |
| 7 | 16, 66 | 48, 88, 204, 230 | 80, 98, 414, 602 | |||
| 8 | 33 | 25 | 119, 198, 266 | 27, 171 | 345 | |
| 9 | 36, 44, 60, 78 | 54, 104, 126, 154, 210, 228 | 72 | |||
| 10 | 39, 110 | 48, 50, 56, 90, 115 | 27 | 75, 143, 287 | 32, 100 |
Table 6. The sporadic sets for , ; a matched family is indicated in its cell.
Proof. By Lemma 4.3 every sporadic solution arises from a triple as in Propositions 4.10 and 4.11, which leave a finite explicit list of candidates; each candidate is kept for the pairs with , , after removal of the members of the matched families. Tables 1–5 record the outcome and Table 6 collects it by pair. The whole list was cross-checked against an exhaustive scan of all composite . ∎
Of the 53 empty pairs, 30 are explained by Theorem 4.1(i) ( odd, even) and 11 by Corollary 4.14(ii) below (, ); two are matched pairs with no sporadic solution, namely and . The ten remaining pairs
have no composite solution at all; an explanation of these ten cases remains to be found.
| Prime fact. | ||||||
| 2 | 2 | 1 | 1 | 3 | 6 | |
| 2 | 2 | 1 | 1 | 5 | 10 | |
| 2 | 2 | 1 | 1 | 7 | 14 | |
| 4 | 2 | 1 | 3 | 12 | ||
| 4 | 2 | 1 | 5 | 20 | ||
| 4 | 2 | 1 | 7 | 28 | ||
| 4 | 2 | 1 | 11 | 44 | ||
| 8 | 4 | 1 | 3 | 24 | ||
| 8 | 4 | 1 | 5 | 40 | ||
| 8 | 4 | 1 | 7 | 56 | ||
| 8 | 4 | 1 | 11 | 88 | ||
| 8 | 4 | 1 | 13 | 104 | ||
| 16 | 8 | 1 | 3 | 48 | ||
| 16 | 8 | 1 | 5 | 80 | ||
| 16 | 8 | 1 | 7 | 112 | ||
| 3 | 3 | 2 | 2 | 5 | 15 | |
| 3 | 3 | 2 | 2 | 7 | 21 | |
| 3 | 3 | 2 | 2 | 11 | 33 | |
| 3 | 3 | 2 | 2 | 13 | 39 | |
| 9 | 6 | 2 | 5 | 45 | ||
| 9 | 6 | 2 | 7 | 63 | ||
| 9 | 6 | 2 | 11 | 99 | ||
| 9 | 6 | 2 | 13 | 117 | ||
| 9 | 6 | 2 | 17 | 153 | ||
| 9 | 6 | 2 | 19 | 171 | ||
| 5 | 5 | 4 | 4 | 7 | 35 | |
| 5 | 5 | 4 | 4 | 11 | 55 | |
| 5 | 5 | 4 | 4 | 13 | 65 | |
| 5 | 5 | 4 | 4 | 17 | 85 | |
| 5 | 5 | 4 | 4 | 19 | 95 | |
| 5 | 5 | 4 | 4 | 23 | 115 | |
| 7 | 7 | 6 | 6 | 11 | 77 | |
| 7 | 7 | 6 | 6 | 13 | 91 | |
| 7 | 7 | 6 | 6 | 17 | 119 | |
| 7 | 7 | 6 | 6 | 23 | 161 | |
| 7 | 7 | 6 | 6 | 29 | 203 | |
| 7 | 7 | 6 | 6 | 31 | 217 | |
| 7 | 7 | 6 | 6 | 37 | 259 | |
| 7 | 7 | 6 | 6 | 41 | 287 | |
| 11 | 11 | 10 | 10 | 13 | 143 | |
| 11 | 11 | 10 | 10 | 17 | 187 |
Table 1. Sporadic solutions with and (, ).
| admissible | ||||||
| 4 | 1 | 2 | 2 | |||
| 8 | 1 | 2 | 3 | |||
| 9 | 1 | 3 | 2 | |||
| 18 | 2 | 3 | 2 | |||
| 25 | 1 | 5 | 2 | |||
| 36 | 4 | 3 | 2 | |||
| 50 | 2 | 5 | 2 |
Table 4 (PDF p. 11). Solutions with and (Proposition 4.11(i)).
Uniform bounds
Lemma 4.9 also makes the finiteness of Theorem 4.4 quantitative, uniformly in the parameters. For let ; it is classical that , indeed [1].
Theorem 4.13 (Uniform bounds). Let , , , and let be the largest integer with , so that ; put . Let be a sporadic composite solution of (4), decomposed as in Lemma 4.3.
(i) If , then and .
(ii) If , then and .
Consequently, with absolute implied constants,
:::`
Proof. Throughout, is the largest prime factor of ( if ), so that and ; and , since the -th prime is at least .
(i) Let , so and . As in Proposition 4.10, is excluded. If then . If , dividing (5) by gives
hence , so and . In both cases (5) and Lemma 4.9 give , whence .
(ii) Let and write (4) as . If , both assertions are trivial. Otherwise the right-hand side is positive; dividing by and using gives , and yields and . For the bound on , use instead Lemma 4.9: , so that
If then . If then, as and , we get , hence .
Counting. For each determines , so there are at most sporadic solutions. For there are choices of , choices of and choices of , since . Hence , as .
Size. Using (Hardy–Wright [6]), a solution with satisfies , and a solution with satisfies .
Thus and are bounded by polynomials in . The census of Theorem 4.12 ( for ), extended by a direct scan of to , (where , at ), suggests that the truth is far smaller; see Question 9.1.
Corollary 4.14. (i) If is odd, there is no matched modulus, and for every the composite solution set of (4) is finite, of cardinality .
(ii) For and one has : the equation has composite solutions only for (the family ) and for .
Proof. (i) A matched modulus satisfies , which is impossible for odd since is even for and ; Theorem 4.13 then bounds the whole solution set. (ii) If is composite and not twice an odd prime, Theorem 1.1 gives for ; if then , so and belongs to the matched family.
Numerical census
An exhaustive direct scan over composites and weights , agrees with Theorems 4.2 and 4.8 in every case, and shows in addition that all unmatched pairs in the range have at most nine composite solutions up to ; a small sample: The parity constraints are visible throughout: every solution found for is even and every solution for is odd, in accordance with Theorem 4.1.
| composite solutions | |
| 4, 12, 30 | |
| 4, 18 | |
| 8, 9, 24, 60, 70 | |
| 8, 36, 45, 50, 91, 105, 126 | |
| 27, 49, 72, 112, 180, 312, 380, 418, 462 |
Table 7.
Simultaneous equations
Write , , for equation (2) with respectively. Combining Theorems 1.1, 3.1 and 3.2 yields complete answers for all conjunctions.
Theorem 5.1. (i) The unique composite integer satisfying and simultaneously is . (ii) No integer satisfies , and simultaneously; indeed already alone has no composite solution, and no prime satisfies .
Proof. (i) By Theorems 1.1 and 3.1 the composite solutions of are and those of are the prime squares; the intersection is , since neither 12 nor 30 is the square of a prime. One checks directly: and .
(ii) For a prime , reads , false; combined with Theorem 3.2 for composites this settles the claim.
Thus, imposing several of these equations at once collapses the solution set, first to and then to .
The average size of the deficiency
Theorem 1.1 says that the deficiency
is nonnegative for composite and vanishes only thrice. How large is it on average? The answer is: as large as itself, the subtracted term being negligible at the scale .
Theorem 6.1. Let , so that and .
For every fixed ,
In particular the mean value .
Proof. Since , we have , where is the sum of the distinct prime divisors of . Hence
The first sum equals [6 Th. 330], and the last one is [6 Th. 430]. The leading term of , namely , is due to Alladi and Erdős [2], and the full expansion to De Koninck and Ivić [3]. Combining these estimates proves the theorem.
Remark 6.2. The leading term also follows from the exact identity , where , together with the prime number theorem. Numerically, equals 0.9153, 0.8978, 0.8858 at (exact sieve computations), whereas the expansion truncated at gives 0.8989, 0.8862, 0.8771 and at reduces the discrepancy at to 0.2%.
Iterated totients on the prime divisors
In this section we replace the prime values in (1) by their iterates and determine, for every , all positive integers with
The answer rests on Theorem 1.1 and on the following monotonicity.
Lemma 7.1. For every the sequence is non-increasing. Moreover, for every prime and every , .
Proof. Since for all , we have . For prime, and is even, so ; the first part gives for .
Write . For , is composite and not twice an odd prime, and ; hence Theorem 1.1 gives by Lemma 7.1. Thus, for every , every solution of (7) lies in , and it remains to examine the elements of .
Theorem 7.2. The solutions of (7) are exactly:
(i) if ;
(ii) if ;
(iii) if .
Proof. The values involved are collected in the following table, where the right-hand side of (7) is denoted :
| , | ||||
| 1 | 1 | 1 | 1 | 1 |
| 2 | 1 | 2 | 2 | 2 |
| 4 | 2 | 2 | 2 | 2 |
| 12 | 4 | 4 | 3 | 3 |
| 30 | 8 | 8 | 5 | 4 |
| 3 | 2 | 3 | 2 | 2 |
| 6 | 2 | 4 | 3 | 3 |
| 10 | 4 | 6 | 4 | 3 |
Table 1 (PDF p. 15).
(For the sum is empty. For , and .) This settles for all , and once these are shown to be the only candidates among the .
Case . For an odd prime , , and . With the table, the solutions are .
Odd primes, . Let be an odd prime. For , (7) reads , i.e. , which forces to be prime; and being consecutive primes, . For , Lemma 7.1 gives , hence , and is a solution by the table.
Twice an odd prime, . Let with an odd prime, so and . For this gives ; since we get . For , Lemma 7.1 gives , again . Thus , and the table shows that 10 is a solution for only, while 6 never is.
Remark 7.3. The solution sets shrink from to and stabilise for all $k \ge 3. The only solution lost between and is , because ; the stabilisation reflects the fact that, for every prime , is even, so the iterates beyond the second are at most half of it and the right-hand side of (7) can only reach for the smallest values of . All three solution sets were confirmed by exhaustive computation up to for .
The weighted form of (7), , behaves differently from the case treated in § 4: since is no longer linear in , the matched families of Theorem 4.2 disappear, but infinite families of a new, conditional kind appear. The simplest instance is the following.
Lemma 7.4. Let be a prime. Then if and only if is prime, i.e. is a safe prime.
Proof. Write with odd, . Then . If , then , with only if , impossible for . So , , , and holds if and only if is prime; since , is odd.
Proposition 7.5. The composite solutions of are exactly
In particular, the solution set is infinite if and only if there are infinitely many primes with or prime; under Dickson’s conjecture all three families are infinite.
Proof. Let be the largest prime factor of and write , . If , the argument of Theorem 4.4 (case ) applies verbatim, since , and the resulting finite search gives only . Let and . Writing , the equation reads
Since , this gives . If then , which bounds in terms of while exceeds every prime factor of ; the finitely many cases are and , where equality holds. Otherwise , i.e. . For one has and the equation becomes , i.e. is a safe prime by Lemma 7.4 (and since and fails). For , and the equation becomes ; writing as in Lemma 7.4, this forces and , i.e. with prime.
The sets were confirmed by exhaustive computation up to : of the 1029 composite solutions, 872 are of the form or with safe, 154 of the form with , and 3 are sporadic. Thus, for , finiteness of the solution sets of the weighted iterated equation is not a theorem but is tied to the distribution of primes for which is prescribed, a question of Sophie Germain type.
Numerical verification
All finite claims of this paper were verified by an exhaustive computation over using SymPy. The composite solution sets found were: for , in agreement with [8]; and nothing else for ; the empty set for , for , for the weighted equation with , and for the triple system; and for the pair . The expansion of Theorem 6.1 was compared with exact sieve computations up to , and the sporadic sets of Theorem 4.8 were obtained by the bounded mechanism enumeration of Lemma 4.7, independently cross-checked against the direct scan. The solution sets of Theorem 7.2 were checked for and . The census of Theorem 4.12 was cross-checked against a direct scan of all composites , and the values for quoted in Question 9.2 were obtained by the bounded enumeration of Theorem 4.13(i)–(ii). The verification scripts are available from the authors.
Concluding remarks and open problems
The results assembled here suggest that the natural home of the Ranjan–Singh theorem is the family of prime–composite characterization problems, alongside Subbarao’s [9] and, in the unsolved direction, Lehmer’s problem [7]. We close with four problems.
Question 9.1. Theorem 4.13 gives with , whereas Theorem 4.12 gives for , a direct scan of gives for , , and for all $1\le c\le 2000. Is finite for each fixed ? The maximizers observed, , , , , , all satisfy , as one expects from (5): when divides and , the divisibility obstruction in disappears. Is governed by and the divisor structure of ?
Question 9.2. For , equation (4) reads , with the deficiency of §6, so that is the multiplicity of the value of on composite integers outside the family , the analogue for of the classical multiplicity problems for [5]. For , is empty for 341 values of , the first being ; the mean multiplicity is stable, close to 2; and every nonzero multiplicity for occurs, first at . Thus the analogue of Carmichael’s conjecture fails for ( is a singleton for ). Does every multiplicity occur, as Ford proved for ? Does the set of with have positive density? Its parity bias is striking: it contains about 30% of the even values of against 5% of the odd ones, an even requiring an odd by Theorem 4.1(iii).
Question 9.3. Theorem 7.2 settles the iterated equation with , and Proposition 7.5 shows that for and the solution set is infinite if and only if there are infinitely many safe primes. Describe, for general and , the conditional families of the weighted iterated equation : they are of the form with and subject to a condition , and one expects each of them to be infinite under Dickson’s conjecture.
Question 9.4. Theorem 6.1 describes the average of . Determine the distribution of , which is expected to tend to 1 in mean.
Finally, apart from the squares of primes (OEIS A001248), none of the solution sets occurring here, in particular , appears to be catalogued in the OEIS at the time of writing; submitting them would usefully anchor the problem in the literature.
References
- [1]P. T. Bateman, The distribution of values of the Euler function, Acta Arith. 21 (1972), 329–345.DOI
- [2]K. Alladi and P. Erdős, On an additive arithmetic function, Pacific J. Math. 71 (1977), 275–294.DOI
- [3]J.-M. De Koninck and A. Ivić, The distribution of the average prime divisor of an integer, Arch. Math. (Basel) 43 (1984), 37–43.DOI
- [4]M. W. Ecker, When does a sum of positive integers equal their product?, Math. Mag. 75 (2002), no. 1, 41–47.DOI
- [5]K. Ford, The number of solutions of φ(x) = m, Ann. of Math. (2) 150 (1999), 283–311.arxiv.org/abs/math/9907204
- [6]G. H. Hardy and E. M. Wright, An Introduction to the Theory of Numbers, 6th ed., Oxford Univ. Press, 2008.
- [7]D. H. Lehmer, On Euler’s totient function, Bull. Amer. Math. Soc. 38 (1932), 745–751.DOI
- [8]R. Ranjan and S. N. Singh, An inequality for Euler’s phi-function, South East Asian J. Math. Math. Sci., to appear, 2026.DOI
- [9]M. V. Subbarao, On two congruences for primality, Pacific J. Math. 52 (1974), 261–268.
- [10]S. Thajoddin and S. Vangipuram, A note on Jordan’s totient function, Indian J. Pure Appl. Math. 19 (1988), no. 12, 1156–1161.