betaFeedback

WorksMathematics

Infinite families and sporadic solutions of the equation φ(n)=c+α∑p∣nφ(p)φ(n)=c+α\sum_{p\mid n}φ(p)

Abstract

Ranjan and Singh proved that for every composite nn which is not twice an odd prime, φ(n)φ(n) is at least one plus the sum of φφ over the prime divisors of nn, with equality exactly for n=4,12,30n=4,12,30. \new{We study the weighted equation φ(n)=c+α∑p∣nφ(p)φ(n)=c+α\sum_{p\mid n}φ(p). We determine the parameters (c,α)(c,α) 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 {4,12,30}\{4,12,30\} 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 ∣c∣≤10|c|\le10, 1≤α≤61\leα\le6 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 ∣c∣+α|c|+α}.} \B{Finally, replacing the prime values φ(p)φ(p) by their iterates φ(k)(p)φ^{(k)}(p), we determine all solutions of φ(n)=1+∑p∣nφ(k)(p)φ(n)=1+\sum_{p\mid n}φ^{(k)}(p): the solution sets are {1,4,12,30}\{1,4,12,30\}, {1,3,4,10}\{1,3,4,10\} and, for every k≥3k\ge3, {1,3,4}\{1,3,4\}; for the weighted iterated equation we exhibit an infinite family governed by the safe primes.

Introduction

Euler’s totient function φ(n)\varphi(n) counts the positive integers up to nn that are coprime to nn. 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 φ(n)∣n−1\varphi(n) \mid n-1 can hold for composite nn; a solved relative is Subbarao’s theorem [9] that his primality congruence admits exactly the composite solutions n∈{4,6,22}n \in\{4, 6, 22\}.

Ranjan and Singh [8] recently added a new instance to this family. Observing that

φ(4)=1+φ(2),φ(12)=1+φ(2)+φ(3),φ(30)=1+φ(2)+φ(3)+φ(5),\varphi(4)=1+\varphi(2), \qquad\varphi(12)=1+\varphi(2)+\varphi(3), \qquad\varphi(30)=1+\varphi(2)+\varphi(3)+\varphi(5),

they asked for which composite numbers such an identity can hold and proved:

Theorem 1.1 (Ranjan–Singh [8]). Let nn be a composite number which is not twice an odd prime, and let p1,…,prp_1,\ldots,p_r be its distinct prime divisors. Then

φ(n)≥1+∑i=1rφ(pi),(1)\varphi(n) \ge1+\sum_{i=1}^{r}\varphi(p_i), \tag*{(1)}

with equality if and only if n∈{4,12,30}n \in\{4,12,30\}. Moreover φ(2p)<1+φ(2)+φ(p)\varphi(2p)<1+\varphi(2)+\varphi(p) for every odd prime pp.

Their proof rests on two elementary product–sum inequalities borrowed from Ecker [4]: ab≥a+bab \ge a+b for a,b≥2a,b \ge2 (equality if and only if a=b=2a=b=2), and a1⋯am>a1+⋯+ama_1\cdots a_m>a_1+\cdots+a_m whenever 2≤a1≤⋯≤am2\le a_1\le\cdots\le a_m and m≥3m\ge3.

The purpose of the present paper is fourfold. First (§3) we treat the analogous equation

f(n)=1+∑p∣nf(p)(2)f(n)=1+\sum_{p\mid n}f(p) \tag*{(2)}

for the divisor-count function τ\tau, the sum-of-divisors function σ\sigma, and the Jordan totients JkJ_k, obtaining in each case a complete answer. The outcomes are strikingly different from one function to the next: for τ\tau the composite solution set is the infinite family {p2:p prime}\{p^2:p\text{ prime}\}; for σ\sigma and for JkJ_k (k≥2k\ge2) it is empty; for φ\varphi it is the finite set {4,12,30}\{4,12,30\}. 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 ∣c∣≤10|c|\le10, 1≤α≤61\le\alpha\le6 the solution sets are then computed completely, and uniform polynomial bounds in ∣c∣+α|c|+\alpha 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 φ(p)\varphi(p) in (1) by their iterates φ(k)(p)\varphi^{(k)}(p) and determine all solutions for every k≥1k\ge1: the monotonicity of the iterates reduces each case to Theorem 1.1, and the solution sets stabilise at {1,3,4}\{1,3,4\} for all k≥3k\ge3.

Notation and preliminaries

Throughout, n=p1a1⋯prarn=p_1^{a_1}\cdots p_r^{a_r} denotes the canonical factorization of an integer n≥2n\ge2, with p1<⋯<prp_1<\cdots<p_r, and ω(n)=r\omega(n)=r is the number of distinct prime divisors of nn. We write τ(n)=∑d∣n1\tau(n)=\sum_{d\mid n}1, σ(n)=∑d∣nd\sigma(n)=\sum_{d\mid n}d, and for k≥1k\ge1

Jk(n)=nk∏p∣n(1−1pk),J_k(n)=n^k\prod_{p\mid n}\left(1-\frac{1}{p^k}\right),

the Jordan totient, so that J1=φJ_1=\varphi and Jk(pa)=pk(a−1)(pk−1)J_k(p^a)=p^{k(a-1)}(p^k-1) [10]. All three of φ\varphi, τ\tau, σ\sigma and every JkJ_k are multiplicative. On primes,

φ(p)=p−1,τ(p)=2,σ(p)=p+1,Jk(p)=pk−1.\varphi(p)=p-1,\qquad\tau(p)=2,\qquad\sigma(p)=p+1,\qquad J_k(p)=p^k-1.

We shall use the elementary fact that φ(n)\varphi(n) is even for every n≥3n\geq3, the fact that φ(n)=n−1\varphi(n)=n-1 if and only if nn is prime, and the bound φ(n)≤n/2\varphi(n)\leq n/2 for even nn. For k≥1k\geq1, φ(k)\varphi^{(k)} denotes the kk-fold iterate of φ\varphi, with φ(1)=φ\varphi^{(1)}=\varphi.

The equation f(n)=1+∑p∣nf(p)f(n)=1+\sum_{p\mid n}f(p) for τ\tau, σ\sigma and JkJ_k

The divisor-count function

Since τ(p)=2\tau(p)=2, equation (2) for f=τf=\tau reads τ(n)=1+2ω(n)\tau(n)=1+2\omega(n).

Theorem 3.1. A composite number nn satisfies τ(n)=1+∑p∣nτ(p)\tau(n)=1+\sum_{p\mid n}\tau(p) if and only if n=p2n=p^2 for some prime pp.

Proof. If n=pan=p^a is a prime power, the equation reads a+1=3a+1=3, i.e. a=2a=2; every n=p2n=p^2 is a solution and no other prime power is.

Suppose now ω(n)=r≥2\omega(n)=r\geq2. Since each exponent satisfies ai+1≥2a_i+1\geq2,

τ(n)=∏i=1r(ai+1)≥2r.\tau(n)=\prod_{i=1}^{r}(a_i+1)\geq2^r.

For r≥3r\geq3 we get τ(n)≥2r>1+2r\tau(n)\geq2^r>1+2r, because 2r−2r−12^r-2r-1 is positive at r=3r=3 and increasing; hence no solutions. For r=2r=2 the equation demands τ(n)=5\tau(n)=5, a prime value of τ\tau; but τ(n)=(a1+1)(a2+1)\tau(n)=(a_1+1)(a_2+1) with both factors ≥2\geq2 is composite. No solutions exist with r=2r=2, which completes the proof.

Thus, in contrast with the finite exceptional set {4,12,30}\{4,12,30\} of Theorem 1.1, the τ\tau-analogue possesses the infinite solution family {4,9,25,49,121,…}\{4,9,25,49,121,\ldots\} (the squares of primes, OEIS A001248).

The sum-of-divisors function

For f=σf=\sigma 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 nn,

σ(n)>1+∑p∣nσ(p),\sigma(n)>1+\sum_{p\mid n}\sigma(p),

and consequently the equation σ(n)=1+∑p∣nσ(p)\sigma(n)=1+\sum_{p\mid n}\sigma(p) has no composite solution.

Proof. Because nn is composite, the integers 1,p1,…,pr,n1,p_1,\ldots,p_r,n are pairwise distinct divisors of nn; hence

σ(n)≥1+∑i=1rpi+n.\sigma(n)\geq1+\sum_{i=1}^{r}p_i+n.

On the other hand 1+∑p∣nσ(p)=1+∑i=1r(pi+1)=1+r+∑i=1rpi1+\sum_{p\mid n}\sigma(p)=1+\sum_{i=1}^{r}(p_i+1)=1+r+\sum_{i=1}^{r}p_i. Subtracting,

σ(n)−(1+∑p∣nσ(p))≥n−r=n−ω(n)>0,\sigma(n)-\left(1+\sum_{p\mid n}\sigma(p)\right)\geq n-r=n-\omega(n)>0,

since ω(n)≤log⁡2n<n\omega(n)\leq\log_2 n<n for all n≥2n\geq2.

Jordan totients of order k≥2k \ge2

For the higher Jordan totients the left-hand side of (2) grows polynomially in nn while the right-hand side grows only with the prime support, and again no composite solutions survive.

Theorem 3.3. Let k≥2k \ge2. For every composite nn,

Jk(n)>1+∑p∣nJk(p),J_k(n) > 1 + \sum_{p \mid n} J_k(p),

so the equation Jk(n)=1+∑p∣nJk(p)J_k(n) = 1 + \sum_{p \mid n} J_k(p) has no composite solution.

Proof. Put xi=pik−1=Jk(pi)x_i = p_i^k - 1 = J_k(p_i) and note xi≥2k−1≥3x_i \ge2^k - 1 \ge3 for k≥2k \ge2.

If n=pan = p^a with a≥2a \ge2, then Jk(n)=pk(a−1)(pk−1)≥pk(pk−1)>1+(pk−1)=pkJ_k(n) = p^{k(a-1)}(p^k - 1) \ge p^k(p^k - 1) > 1 + (p^k - 1) = p^k, the last inequality because pk−1≥3p^k - 1 \ge3 implies pk(pk−1)≥3pk>pkp^k(p^k - 1) \ge3p^k > p^k.

If r≥2r \ge2, then by multiplicativity Jk(n)≥∏i=1rxiJ_k(n) \ge\prod_{i=1}^r x_i, and it suffices to prove

∏i=1rxi>1+∑i=1rxi(xi≥3, r≥2).(3)\prod_{i=1}^{r} x_i > 1 + \sum_{i=1}^{r} x_i \qquad(x_i \ge3,\ r \ge2). \tag*{(3)}

For r=2r = 2: (x1−1)(x2−1)≥4>2(x_1 - 1)(x_2 - 1) \ge4 > 2, which rearranges to x1x2>1+x1+x2x_1x_2 > 1 + x_1 + x_2. For r≥3r \ge3, induction: if (3) holds for r−1r - 1 terms, then ∏i≤rxi>xr(1+∑i<rxi)≥xr+3∑i<rxi>1+∑i≤rxi\prod_{i \le r} x_i > x_r(1 + \sum_{i < r} x_i) \ge x_r + 3\sum_{i < r} x_i > 1 + \sum_{i \le r} x_i.

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 (τ\tau), a finite nonempty one (φ\varphi), and empty ones (σ\sigma, all JkJ_k with k≥2k \ge2). Heuristically, the size of the solution set is governed by the growth of f(pa)f(p^a) against f(p)f(p): the slower the growth, the richer the solution set.

The weighted equation: a complete structure theory

Consider, for integer parameters cc and α≥1\alpha\ge1, the weighted equation

φ(n)=c+α∑p∣nφ(p),(4)\varphi(n) = c + \alpha\sum_{p \mid n} \varphi(p), \tag*{(4)}

of which Theorem 1.1 is the case (c,α)=(1,1)(c,\alpha) = (1,1). Write Sm:=∑q∣mφ(q)S_m := \sum_{q \mid m} \varphi(q) for the prime-support sum, so that (4) reads φ(n)=c+αSn\varphi(n) = c + \alpha S_n. 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 ∣c∣≤10|c| \le10, 1≤α≤61 \le\alpha\le6 (Theorem 4.12), and uniform polynomial bounds in ∣c∣+α|c| + \alpha are derived from it (Theorem 4.13).

Parity constraints

Theorem 4.1 (Parity constraints). Let n≥4n \ge4 be a composite solution of (4). Then: (i) if cc is odd and α\alpha is even, no such nn exists; (ii) if cc and α\alpha are both odd, nn is even; (iii) if cc is even and α\alpha is odd, nn is odd; (iv) if cc and α\alpha are both even, no parity restriction holds.

Proof. For n≥3n \ge3 the value φ(n)\varphi(n) is even. On the other side, φ(2)=1\varphi(2) = 1 is the only odd value of φ\varphi at a prime, whence Sn≡12∣n(mod2)S_n \equiv1_{2 \mid n} \pmod2 and the right-hand side of (4) is congruent to c+α12∣nc + \alpha1_{2 \mid n} modulo 2. Requiring it to be even yields exactly the four cases. Case (iv) is realized: (c,α)=(2,2)(c,\alpha) = (2,2) has both the even solution 8 and the odd solution 9.

Classification of the infinite families

The exclusion of n=2pn = 2p in Theorem 1.1 is not an accident of the proof: the integers 2p2p form an exact infinite family for the neighbouring pair (c,α)=(−1,1)(c, \alpha) = (-1, 1), since φ(2p)=p−1=S2p−1\varphi(2p) = p - 1 = S_{2p} - 1. This phenomenon is completely general.

Theorem 4.2 (Infinite families). Let m≥2m \ge2 be fixed. Every integer n=mpn = mp, with pp prime and p∤mp \nmid m, satisfies (4) if and only if

α=φ(m)andc=−φ(m)Sm.\alpha= \varphi(m) \qquad\text{and} \qquad c = -\varphi(m) S_m.

We call such a pair (c,α)(c, \alpha) matched, with modulus mm. For each α\alpha there are only finitely many matched moduli, since φ(m)=α\varphi(m) = \alpha has finitely many solutions mm.

Proof. For p∤mp \nmid m, multiplicativity gives φ(mp)=φ(m)(p−1)\varphi(mp) = \varphi(m)(p - 1) and Smp=Sm+p−1S_{mp} = S_m + p - 1. Equation (4) becomes the identity in pp

φ(m)(p−1)=c+αSm+α(p−1),\varphi(m)(p - 1) = c + \alpha S_m + \alpha(p - 1),

which holds for infinitely many (equivalently, for all admissible) primes pp if and only if the coefficients of p−1p - 1 and the constant terms match: φ(m)=α\varphi(m) = \alpha and c+αSm=0c + \alpha S_m = 0.

For example, the matched pairs in the range ∣c∣≤10|c| \le10, 1≤α≤61 \le\alpha\le6 are

mm(c,α)(c, \alpha)family
2(−1,1)(-1, 1){2p}\{2p\}
4(−2,2)(-2, 2){4p}\{4p\}
3(−4,2)(-4, 2){3p}\{3p\}
6(−6,2)(-6, 2){6p}\{6p\}
8(−4,4)(-4, 4){8p}\{8p\}

Table 4.

and the pair (1,1)(1, 1) of Theorem 1.1 is unmatched: φ(m)=1\varphi(m) = 1 forces m=2m = 2, which would require c=−1≠1c = -1 \ne1.

Finiteness outside the families, and the sporadic mechanism

Lemma 4.3. Let nn be a composite solution of (4), let PP be the largest prime factor of nn and write n=m′Pan = m'P^a with P∤m′P \nmid m', a≥1a \ge1. If a=1a = 1 then

(φ(m′)−α)(P−1)=c+αSm′.(5)\left(\varphi(m') - \alpha\right)(P - 1) = c + \alpha S_{m'}. \tag*{(5)}

while if a≥2a \ge2 then

(P−1)(φ(m′)Pa−1−α)=c+αSm′.(P - 1)\left(\varphi(m')P^{a-1} - \alpha\right) = c + \alpha S_{m'}.

Proof. Immediate from φ(n)=φ(m′)Pa−1(P−1)\varphi(n) = \varphi(m')P^{a-1}(P - 1) and Sn=Sm′+P−1S_n = S_{m'} + P - 1.

Equation (5) is the engine of the whole subject. When m′m' is a matched modulus both sides vanish and PP is unconstrained: this reproduces the infinite families. Otherwise PP is determined by m′m', and the point of the next theorem is that only finitely many m′m' can produce a legitimate PP.

Theorem 4.4 (Structure theorem). For every pair (c,α)(c, \alpha), the set of composite solutions of (4) is the union of the families {mp:p prime, p∤m}\{mp : p\ \text{prime},\ p \nmid m\} over the finitely many matched moduli mm, together with a finite sporadic set F(c,α)F(c, \alpha). In particular, if (c,α)(c, \alpha) is unmatched—as is (1,1)(1, 1)—the composite solution set is finite.

Proof. Let n=m′Pan=m'P^a be a solution as in Lemma 4.3 which does not belong to a matched family. We use the elementary bounds φ(m)≥m/2\varphi(m)\ge\sqrt{m/2} and ω(m)≤log⁡2m\omega(m)\le\log_2m, and we note that PP exceeds every prime factor of m′m' (being the largest prime factor of nn, and coprime to m′m'); thus, with QQ the largest prime factor of m′m' (set Q=1Q=1 if m′=1m'=1), we have P≥Q+1P\ge Q+1 and Sm′≤ω(m′)(Q−1)S_{m'}\le\omega(m')(Q-1).

Case a=1a=1. If φ(m′)=α\varphi(m')=\alpha then, m′m' being unmatched, c+αSm′≠0c+\alpha S_{m'}\ne0 and (5) is contradictory; besides, φ(m′)=α\varphi(m')=\alpha already confines m′m' to a finite set. So assume φ(m′)≠α\varphi(m')\ne\alpha; then (5) determines

P−1=c+αSm′φ(m′)−α,P-1=\frac{c+\alpha S_{m'}}{\varphi(m')-\alpha},

at most one prime for each m′m'. If moreover φ(m′)>α\varphi(m')>\alpha, the requirement P−1≥QP-1\ge Q forces

Q≤∣c∣+αω(m′)(Q−1)φ(m′)−α,Q\le\frac{|c|+\alpha\omega(m')(Q-1)}{\varphi(m')-\alpha},

hence φ(m′)<α+∣c∣+αω(m′)≤α+∣c∣+αlog⁡2m′\varphi(m')<\alpha+|c|+\alpha\omega(m')\le\alpha+|c|+\alpha\log_2m'.

Since φ(m′)≥m′/2\varphi(m')\ge\sqrt{m'/2} grows faster than log⁡2m′\log_2m', only finitely many m′m' qualify; the finitely many m′m' with φ(m′)<α\varphi(m')<\alpha are handled trivially. Each surviving m′m' contributes at most one solution.

Case a≥2a\ge2. Here

(P−1)(φ(m′)Pa−1−α)=c+αSm′.(P-1)(\varphi(m')P^{a-1}-\alpha)=c+\alpha S_{m'}.

If the second factor is nonpositive, then φ(m′)Pa−1≤α\varphi(m')P^{a-1}\le\alpha, which bounds m′m', PP and aa. Otherwise it is at least 1, and since Sm′≤ω(m′)(Q−1)≤ω(m′)(P−1)S_{m'}\le\omega(m')(Q-1)\le\omega(m')(P-1), dividing by P−1P-1 gives

φ(m′)Pa−1≤α+∣c∣+αω(m′)≤α+∣c∣+αlog⁡2m′.\varphi(m')P^{a-1}\le\alpha+|c|+\alpha\omega(m')\le\alpha+|c|+\alpha\log_2m'.

As φ(m′)≥m′/2\varphi(m')\ge\sqrt{m'/2}, this bounds m′m', then Pa−1P^{a-1}, hence PP and aa. 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 (1,1)(1,1) is unmatched, and its sporadic set is F(1,1)={4,12,30}F(1,1)=\{4,12,30\}. The elements 12 and 30 arise from (5): for n=12=4⋅3n=12=4\cdot3, (φ(4)−1)(3−1)=2=1+S4(\varphi(4)-1)(3-1)=2=1+S_4, and for n=30=6⋅5n=30=6\cdot5, (φ(6)−1)(5−1)=4=1+S6(\varphi(6)-1)(5-1)=4=1+S_6; the element 4=224=2^2 arises from the case a≥2a\ge2 of Lemma 4.3, with m′=1m'=1: (2−1)(1⋅2−1)=1=1+S1(2-1)(1\cdot2-1)=1=1+S_1.

Corollary 4.6. If cc is odd and α\alpha is even—for instance (c,α)=(1,2)(c,\alpha)=(1,2)—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 (c,α)(c,\alpha) be one of the five matched pairs (so ∣c∣≤6|c|\le6, α≤4\alpha\le4), and let n=m′Pan=m'P^a be a sporadic composite solution, decomposed as in Lemma 4.3. Then ω(m′)≤3\omega(m')\le3 and φ(m′)≤18\varphi(m')\le18, hence m′≤648m'\le648; moreover P≤83P\le83 and a≤5a\le5.

Proof. Suppose first a=1a=1; then m′≥2m'\ge2 and Q≥2Q\ge2, where QQ is the largest prime factor of m′m'. One checks that each of the five pairs has a unique matched modulus; hence if φ(m′)=α\varphi(m')=\alpha, either nn lies in the matched family or c+αSm′≠0c+\alpha S_{m'}\ne0 and (5) fails. If φ(m′)<α≤4\varphi(m')<\alpha\le4 then m′∈{2,3,4,6}m'\in\{2,3,4,6\}, Sm′≤3S_{m'}\le3 and P≤1+∣c∣+αSm′≤19P\le1+|c|+\alpha S_{m'}\le19. If φ(m′)>α\varphi(m')>\alpha, then from (5) and P−1≥QP-1\ge Q,

Q≤P−1=c+αSm′φ(m′)−α≤∣c∣+αω(m′)(Q−1)φ(m′)−α,Q\le P-1=\frac{c+\alpha S_{m'}}{\varphi(m')-\alpha}\le\frac{|c|+\alpha\omega(m')(Q-1)}{\varphi(m')-\alpha},

whence φ(m′)≤α+∣c∣/Q+αω(m′)≤7+4ω(m′)\varphi(m')\le\alpha+|c|/Q+\alpha\omega(m')\le7+4\omega(m'). Since φ(m′)≥∏q∣m′(q−1)≥1⋅2⋅4⋅6=48\varphi(m')\ge\prod_{q\mid m'}(q-1)\ge1\cdot2\cdot4\cdot6=48 as soon as ω(m′)≥4\omega(m')\ge4, we conclude ω(m′)≤3\omega(m')\le3 and φ(m′)≤19\varphi(m')\le19, hence φ(m′)≤18\varphi(m')\le18 since

φ(m′)\varphi(m') is even; the bound m′≤2⋅182=648m' \le2 \cdot18^2 = 648 follows from φ(m)≥m/2\varphi(m) \ge\sqrt{m/2}. Every prime q∣m′q \mid m' then satisfies q−1≤18q - 1 \le18, and a direct check gives Sm′≤19S_{m'} \le19 (the maximum being S38=19S_{38} = 19); therefore P≤1+∣c∣+αSm′≤1+6+4⋅19=83P \le1 + |c| + \alpha S_{m'} \le1 + 6 + 4 \cdot19 = 83.

Now let a≥2a \ge2. If φ(m′)Pa−1≤α≤4\varphi(m')P^{a-1} \le\alpha\le4 we are in a finite explicit range. Otherwise, as in the proof of Theorem 4.4, φ(m′)Pa−1≤α+∣c∣+αω(m′)≤10+4ω(m′)\varphi(m')P^{a-1} \le\alpha+ |c| + \alpha\omega(m') \le10 + 4\omega(m'); the same comparison with ∏q∣m′(q−1)\prod_{q\mid m'}(q - 1) gives ω(m′)≤3\omega(m') \le3, hence φ(m′)Pa−1≤22\varphi(m')P^{a-1} \le22. Thus Pa−1≤22P^{a-1} \le22, so that P≤19P \le19 and a≤5a \le5.

Theorem 4.8 (Exact sporadic sets). For the five matched pairs in the range ∣c∣≤10|c| \le10, 1≤α≤61 \le\alpha\le6, the sporadic sets are:

F(−1,1)=F(−2,2)=F(−4,2)=∅,F(-1,1) = F(-2,2) = F(-4,2) = \varnothing,
F(−6,2)={10},F(−4,4)={77,90,182,210}.F(-6,2) = \{10\}, \qquad F(-4,4) = \{77, 90, 182, 210\}.

Consequently the composite solutions of φ(n)=−1+∑p∣nφ(p)\varphi(n) = -1 + \sum_{p\mid n}\varphi(p) are exactly the integers 2p2p; those of φ(n)=−2+2∑φ(p)\varphi(n) = -2 + 2\sum\varphi(p) exactly the 4p4p; those of φ(n)=−4+2∑φ(p)\varphi(n) = -4 + 2\sum\varphi(p) exactly the 3p3p; those of φ(n)=−6+2∑φ(p)\varphi(n) = -6 + 2\sum\varphi(p) exactly 1010 and the 6p6p; and those of φ(n)=−4+4∑φ(p)\varphi(n) = -4 + 4\sum\varphi(p) exactly 77,90,182,21077, 90, 182, 210 and the 8p8p.

Proof. By Lemma 4.7 every sporadic solution arises, through the canonical decomposition n=m′Pan = m'P^a, from a triple (m′,P,a)(m', P, a) in the explicit finite range m′≤648m' \le648, P≤83P \le83, a≤5a \le5 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. n=90=18⋅5n = 90 = 18 \cdot5 for (−4,4)(-4,4): (φ(18)−4)(5−1)=8=−4+4S18(\varphi(18) - 4)(5 - 1) = 8 = -4 + 4S_{18}, and φ(90)=24=−4+4(1+2+4)\varphi(90) = 24 = -4 + 4(1 + 2 + 4).)

The complete census in the range ∣c∣≤10|c| \le10, 1≤α≤61 \le\alpha\le6

The bounds of Lemma 4.7 concern the five matched pairs only. We now carry out the same programme for all 126 pairs ∣c∣≤10|c| \le10, 1≤α≤61 \le\alpha\le6, following the canonical decomposition n=m′Pan = m'P^a of Lemma 4.3; we use freely that P>QP > Q, where QQ denotes the largest prime factor of m′m' (Q=1Q = 1 if m′=1m' = 1). The first step is to read Theorem 1.1 as a universal inequality.

Lemma 4.9. For every positive integer mm, Sm≤φ(m)+1S_m \le\varphi(m) + 1, with equality if and only if m=2pm = 2p with pp an odd prime.

Proof. For m=1m = 1, mm prime and m=2pm = 2p the inequality is immediate (0≤20 \le2, p−1≤pp - 1 \le p, p≤pp \le p). If mm is composite and not twice an odd prime, Theorem 1.1 gives 1+Sm≤φ(m)1 + S_m \le\varphi(m), hence Sm<φ(m)+1S_m < \varphi(m) + 1.

Proposition 4.10 (Case a=1a = 1). Let ∣c∣≤10|c| \le10, 1≤α≤61 \le\alpha\le6, and let n=m′Pn = m'P (with a=1a = 1, so m′≥2m' \ge2) be a sporadic composite solution of (4).

  1. If φ(m′)<α\varphi(m') < \alpha, then m′∈{2,3,4,5,6,8,10,12}m' \in\{2, 3, 4, 5, 6, 8, 10, 12\}, Sm′≤5S_{m'} \le5 and P≤41P \le41.

  1. If φ(m′)>α\varphi(m') > \alpha, then φ(m′)<11+6ω(m′)\varphi(m') < 11 + 6\omega(m') and ω(m′)≤3\omega(m') \le3; moreover m′≤34m' \le34 if ω(m′)=1\omega(m') = 1, m′≤92m' \le92 if ω(m′)=2\omega(m') = 2, and m′≤232m' \le232 if ω(m′)=3\omega(m') = 3.

The case φ(m′)=α\varphi(m') = \alpha produces no sporadic solution. The resulting solutions are listed in Tables 1, Table 2 and Table 3.

m′m'Prime fact.φ(m′)\varphi(m')Sm′S_{m'}PP(c,α)(c,\alpha)nn
62⋅32 \cdot3235(1,1)(1,1)30
62⋅32 \cdot3237(3,1)(3,1)42
62⋅32 \cdot32311(7,1)(7,1)66
62⋅32 \cdot32313(9,1)(9,1)78
102⋅52 \cdot5457(2,2),(−9,3)(2,2),(-9,3)70
102⋅52 \cdot54511(10,2),(−5,3)(10,2),(-5,3)110
102⋅52 \cdot54513(−3,3)(-3,3)130
102⋅52 \cdot54517(1,3)(1,3)170
102⋅52 \cdot54519(3,3)(3,3)190
102⋅52 \cdot54523(7,3)(7,3)230
1222⋅32^2 \cdot3435(9,1),(2,2),(−5,3)(9,1),(2,2),(-5,3)60
1222⋅32^2 \cdot3437(6,2),(−3,3)(6,2),(-3,3)84
1222⋅32^2 \cdot34311(1,3)(1,3)132
1222⋅32^2 \cdot34313(3,3)(3,3)156
1222⋅32^2 \cdot34317(7,3)(7,3)204
1222⋅32^2 \cdot34319(9,3)(9,3)228
142⋅72 \cdot76711(9,3),(−8,4)(9,3),(-8,4)154
142⋅72 \cdot76713(−4,4)(-4,4)182
142⋅72 \cdot76717(4,4)(4,4)238
142⋅72 \cdot76719(8,4)(8,4)266
142⋅72 \cdot76729(−7,5)(-7,5)406
142⋅72 \cdot76731(−5,5)(-5,5)434
142⋅72 \cdot76737(1,5)(1,5)518
142⋅72 \cdot76741(5,5)(5,5)574
142⋅72 \cdot76743(7,5)(7,5)602
182⋅322 \cdot3^2635(10,2),(3,3),(−4,4)(10,2),(3,3),(-4,4)90
182⋅322 \cdot3^2637(9,3),(0,4),(−9,5)(9,3),(0,4),(-9,5)126
182⋅322 \cdot3^26311(8,4),(−5,5)(8,4),(-5,5)198
182⋅322 \cdot3^26313(−3,5)(-3,5)234
182⋅322 \cdot3^26317(1,5)(1,5)306
182⋅322 \cdot3^26319(3,5)(3,5)342
182⋅322 \cdot3^26323(7,5)(7,5)414
153⋅53 \cdot5867(0,4)(0,4)105
153⋅53 \cdot58611(0,5)(0,5)165
153⋅53 \cdot58613(6,5)(6,5)195
153⋅53 \cdot58617(−4,6)(-4,6)255
153⋅53 \cdot58619(0,6)(0,6)285
153⋅53 \cdot58623(8,6)(8,6)345
2022⋅52^2 \cdot5857(4,4),(−7,5)(4,4),(-7,5)140
2022⋅52^2 \cdot58511(5,5),(−10,6)(5,5),(-10,6)220
2022⋅52^2 \cdot58513(−6,6)(-6,6)260
2022⋅52^2 \cdot58517(2,6)(2,6)340
2022⋅52^2 \cdot58519(6,6)(6,6)380
2423⋅32^3 \cdot3835(4,4),(−3,5),(−10,6)(4,4),(-3,5),(-10,6)120
2423⋅32^3 \cdot3837(3,5),(−6,6)(3,5),(-6,6)168
2423⋅32^3 \cdot38311(2,6)(2,6)264
2423⋅32^3 \cdot38313(6,6)(6,6)312
222⋅112 \cdot11101113(5,5)(5,5)286
222⋅112 \cdot11101117(−2,6)(-2,6)374
222⋅112 \cdot11101119(6,6)(6,6)418
3622⋅322^2 \cdot3^21235(6,6)(6,6)180

Table 2. Sporadic solutions with a=1a=1 and ω(m′)=2\omega(m')=2 (m′≤92m' \le92, P≤43P \le43).

m′m'Prime fact.φ(m′)\varphi(m')Sm′S_{m'}PP(c,α)(c,\alpha)nn
302⋅3⋅52 \cdot3 \cdot5877(9,3),(−4,4)(9,3),(-4,4)210
302⋅3⋅52 \cdot3 \cdot58711(−5,5)(-5,5)330
302⋅3⋅52 \cdot3 \cdot58713(1,5)(1,5)390
302⋅3⋅52 \cdot3 \cdot58717(−10,6)(-10,6)510
302⋅3⋅52 \cdot3 \cdot58719(−6,6)(-6,6)570
302⋅3⋅52 \cdot3 \cdot58723(2,6)(2,6)690
422⋅3⋅72 \cdot3 \cdot712911(6,6)(6,6)462

Table 3. Sporadic solutions with a=1a=1 and ω(m′)=3\omega(m')=3 (m′≤232m' \le232, P≤23P \le23).

Proof. If φ(m′)=α\varphi(m') = \alpha, equation (5) forces c+αSm′=0c + \alpha S_{m'} = 0, so m′m' is a matched modulus and nn lies in its family: no sporadic solution arises.

(i) Since φ\varphi takes no odd value except 1, φ(m′)<α≤6\varphi(m') < \alpha\le6 gives φ(m′)∈{1,2,4}\varphi(m') \in\{1,2,4\}, i.e. m′∈φ−1(1)∪φ−1(2)∪φ−1(4)={1,2}∪{3,4,6}∪{5,8,10,12}m' \in\varphi^{-1}(1) \cup\varphi^{-1}(2) \cup\varphi^{-1}(4) = \{1,2\} \cup\{3,4,6\} \cup\{5,8,10,12\}, and m′≥2m' \ge2. Hence Sm′≤S10=5S_{m'} \le S_{10} = 5, and (5) gives P−1=c+αSm′φ(m′)−α≤∣c∣+αSm′≤40P-1 = \frac{c+\alpha S_{m'}}{\varphi(m')-\alpha} \le|c|+\alpha S_{m'} \le40.

(ii) Since P>QP > Q we have P−1≥QP-1 \ge Q, and Sm′<∑q∣m′q≤Qω(m′)S_{m'} < \sum_{q\mid m'}q \le Q\omega(m'). Dividing (5) by P−1P-1,

φ(m′)−α=c+αSm′P−1≤cQ+αSm′Q≤102+αω(m′)≤5+6ω(m′),\varphi(m')-\alpha= \frac{c+\alpha S_{m'}}{P-1} \le\frac{c}{Q}+\frac{\alpha S_{m'}}{Q} \le\frac{10}{2}+\alpha\omega(m') \le5+6\omega(m'),

whence φ(m′)<11+6ω(m′)\varphi(m') < 11+6\omega(m'). If ω(m′)≥4\omega(m') \ge4 then φ(m′)≥1⋅2⋅4⋅6⋅5ω(m′)−4>11+6ω(m′)\varphi(m') \ge1\cdot2\cdot4\cdot6\cdot5^{\omega(m')-4} > 11+6\omega(m'), so ω(m′)≤3\omega(m') \le3. Finally φ(ℓ)=ℓ∏q∣ℓ(1−1/q)≥ℓ/2ω(ℓ)\varphi(\ell)=\ell\prod_{q\mid\ell}(1-1/q)\ge\ell/2^{\omega(\ell)} gives m′≤2ω(m′)φ(m′)m' \le2^{\omega(m')}\varphi(m'), i.e. m′≤2⋅17=34m' \le2\cdot17=34, 4⋅23=924\cdot23=92, 8⋅29=2328\cdot29=232 according as ω(m′)=1,2,3\omega(m')=1,2,3. For each admissible m′m', (5) determines PP, and the enumeration yields the three tables.

Proposition 4.11 (Case a≥2a \ge2). Let ∣c∣≤10|c| \le10, 1≤α≤61 \le\alpha\le6, and let n=m′Pan=m'P^a with a≥2a \ge2 be a composite solution of (4). Then P∈{2,3,5,7}P \in\{2,3,5,7\}, and:

(i) if φ(m′)Pa−1≤6\varphi(m')P^{a-1} \le6, then (m′,P,a)(m',P,a) is one of the seven triples (1,2,2)(1,2,2), (1,2,3)(1,2,3), (1,3,2)(1,3,2), (1,5,2)(1,5,2), (2,3,2)(2,3,2), (2,5,2)(2,5,2), (4,3,2)(4,3,2), i.e. n∈{4,8,9,25,18,50,36}n \in\{4,8,9,25,18,50,36\};

(ii) if φ(m′)Pa−1>6\varphi(m')P^{a-1} > 6, then n∈{16,32,27,54,72,75,100,150,49,98}n \in\{16,32,27,54,72,75,100,150,49,98\}.

The corresponding pairs (c,α)(c,\alpha) are listed in Tables 4 and Table 5.

nnm′m'PPaac(α)c(\alpha)(c,α)(c,\alpha)
161248−α8-\alpha(7,1),(6,2),(5,3),(4,4),(3,5),(2,6)(7,1),(6,2),(5,3),(4,4),(3,5),(2,6)
3212516−α16-\alpha(10,6)(10,6)
2713318−2α18-2\alpha(10,4),(8,5),(6,6)(10,4),(8,5),(6,6)
5423318−3α18-3\alpha(9,3),(6,4),(3,5),(0,6)(9,3),(6,4),(3,5),(0,6)
7283224−3α24-3\alpha(9,5),(6,6)(9,5),(6,6)
7535240−6α40-6\alpha(10,5),(4,6)(10,5),(4,6)
10045240−5α40-5\alpha(10,6)(10,6)
15065240−7α40-7\alpha(5,5),(−2,6)(5,5),(-2,6)
4917242−6α42-6\alpha(6,6)(6,6)
9827242−7α42-7\alpha(7,5),(0,6)(7,5),(0,6)

Table 5. Solutions with a≥2a \ge2 and φ(m′)Pa−1>6\varphi(m')P^{a-1} > 6 (Proposition 4.11(ii)).

Proof. Write (4) as φ(m′)Pa−1(P−1)=c+α(Sm′+P−1)\varphi(m')P^{a-1}(P-1)=c+\alpha(S_{m'}+P-1). By Lemma 4.9, Sm′+P−1≤φ(m′)+PS_{m'}+P-1\le\varphi(m')+P, hence

φ(m′)(Pa−1(P−1)−6)≤10+6P.(6)\varphi(m')\left(P^{a-1}(P-1)-6\right)\le10+6P. \tag*{(6)}

Since Pa−1≥PP^{a-1}\ge P, this gives φ(m′)(P−3)(P+2)≤10+6P\varphi(m')(P-3)(P+2)\le10+6P, which fails for every prime P≥11P\ge11, since (P−3)(P+2)−(6P+10)=P2−7P−16>0(P-3)(P+2)-(6P+10)=P^2-7P-16>0 for P≥11P\ge11. Thus P∈{2,3,5,7}P\in\{2,3,5,7\}.

(i) If φ(m′)Pa−1≤6\varphi(m')P^{a-1}\le6 then Pa−1≤6P^{a-1}\le6, so P∈{2,3,5}P\in\{2,3,5\} and a=2a=2 unless P=2P=2. For P=2P=2, m′=1m'=1 and 2a−1≤62^{a-1}\le6 gives a∈{2,3}a\in\{2,3\}. For P=3P=3, a=2a=2 and φ(m′)≤2\varphi(m')\le2 with 3∤m′3\nmid m' give m′∈{1,2,4}m'\in\{1,2,4\}. For P=5P=5, a=2a=2 and φ(m′)=1\varphi(m')=1 give m′∈{1,2}m'\in\{1,2\}. For each of the seven triples, c=φ(n)−αSnc=\varphi(n)-\alpha S_n is an affine function of α\alpha, tabulated in Table 4.

(ii) If Pa−1(P−1)>6P^{a-1}(P-1)>6, inequality (6) bounds everything: for P=2P=2 (m′=1m'=1), 2a−1≤282^{a-1}\le28, so a≤5a\le5 and n∈{16,32}n\in\{16,32\} (the cases a≤3a\le3 being in (i)); for P=3P=3 and a=3a=3, 12φ(m′)≤2812\varphi(m')\le28, so m′∈{1,2,4}m'\in\{1,2,4\}; n=108n=108 gives c=36−3α≥18c=36-3\alpha\ge18, hence n∈{27,54}n\in\{27,54\}, while a≥4a\ge4 is impossible; for P=5P=5, a=2a=2 and 14φ(m′)≤4014\varphi(m')\le40, so φ(m′)≤2\varphi(m')\le2, m′∈{1,2,3,4,6}m'\in\{1,2,3,4,6\} and n∈{75,100,150}n\in\{75,100,150\} (n=25,50n=25,50 being in (i)); for P=7P=7, a=2a=2 and 36φ(m′)≤5236\varphi(m')\le52, so m′∈{1,2}m'\in\{1,2\} and n∈{49,98}n\in\{49,98\}. The only remaining triples have Pa−1(P−1)≤6<φ(m′)Pa−1P^{a-1}(P-1)\le6<\varphi(m')P^{a-1}, i.e. (P,a)=(3,2)(P,a)=(3,2) with m′=2em'=2^e, e≥3e\ge3; then (4) reads 3⋅2e=c+3α≤283\cdot2^e=c+3\alpha\le28, whence e=3e=3 and n=72n=72. The pairs (c,α)(c,\alpha) with ∣c∣≤10|c|\le10 for these ten integers are those of Table 5. ∎

Theorem 4.12 (Complete census). Let ∣c∣≤10|c|\le10 and 1≤α≤61\le\alpha\le6. 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 F(c,α)F(c,\alpha) displayed in Table 6. There are exactly 200 sporadic pairs ((c,α),n)((c,\alpha),n), involving 116 distinct integers nn, the largest being 690=2⋅3⋅5⋅23690=2\cdot3\cdot5\cdot23 for (c,α)=(2,6)(c,\alpha)=(2,6); one has ∣F(c,α)∣≤9|F(c,\alpha)|\le9, with equality only for (6,6)(6,6), and F(c,α)=∅F(c,\alpha)=\varnothing for 53 of the 126 pairs.

c\αc \backslash\alpha123456
−10-10∅\varnothing∅\varnothing156∅\varnothing24, 50, 120, 220, 510
−9-9∅\varnothing∅\varnothing28, 70∅\varnothing18, 40, 126∅\varnothing
−8-8∅\varnothing14∅\varnothing12, 154161∅\varnothing
−7-7∅\varnothing∅\varnothing6, 20∅\varnothing24, 140, 406∅\varnothing
−6-6∅\varnothing10; {6p}\{6p\}3518459, 36, 168, 260, 570
−5-5∅\varnothing∅\varnothing12, 60, 110∅\varnothing50, 198, 330, 434∅\varnothing
−4-4∅\varnothing{3p}\{3p\}∅\varnothing77, 90, 182, 210; {8p}\{8p\}9, 634, 25, 255
−3-3∅\varnothing∅\varnothing18, 84, 130∅\varnothing4, 36, 120, 234∅\varnothing
−2-2∅\varnothing{4p}\{4p\}554, 92038, 48, 150, 374
−1-1{2p}\{2p\}∅\varnothing4, 24∅\varnothing8∅\varnothing
0∅\varnothing4, 189, 658, 36, 45, 50, 91, 105, 12625, 99, 165, 21754, 98, 285
14, 12, 30∅\varnothing8, 40, 132, 170∅\varnothing48, 306, 390, 518∅\varnothing
2158, 9, 24, 60, 70∅\varnothing∅\varnothing11716, 80, 264, 340, 690
38, 18, 20, 42∅\varnothing36, 56, 90, 156, 190∅\varnothing16, 54, 168, 342∅\varnothing
49, 21358516, 25, 48, 63, 120, 140, 238∅\varnothing75, 187
524, 28∅\varnothing16, 50∅\varnothing150, 220, 286, 574∅\varnothing
6∅\varnothing16, 36, 40, 8445, 9554153, 195, 25927, 49, 72, 112, 180, 312, 380, 418, 462
716, 66∅\varnothing48, 88, 204, 230∅\varnothing80, 98, 414, 602∅\varnothing
833∅\varnothing25119, 198, 26627, 171345
936, 44, 60, 78∅\varnothing54, 104, 126, 154, 210, 228∅\varnothing72∅\varnothing
1039, 11048, 50, 56, 90, 1152775, 143, 28732, 100

Table 6. The sporadic sets F(c,α)F(c,\alpha) for ∣c∣≤10|c| \le10, 1≤α≤61 \le\alpha\le6; a matched family is indicated in its cell.

Proof. By Lemma 4.3 every sporadic solution arises from a triple (m′,P,a)(m',P,a) as in Propositions 4.10 and 4.11, which leave a finite explicit list of candidates; each candidate nn is kept for the pairs (c,α)(c,\alpha) with c=φ(n)−αSnc=\varphi(n)-\alpha S_n, ∣c∣≤10|c|\le10, 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 n≤106n\le10^6. ∎

Of the 53 empty pairs, 30 are explained by Theorem 4.1(i) (cc odd, α\alpha even) and 11 by Corollary 4.14(ii) below (α=1\alpha= 1, c≤0c \le0); two are matched pairs with no sporadic solution, namely (−4,2)(-4, 2) and (−2,2)(-2, 2). The ten remaining pairs

(6,1), (−10,2), (8,2), (−8,3), (−4,3), (2,3), (2,4), (4,5), (−10,5), (−8,6)(6, 1),\ (-10, 2),\ (8, 2),\ (-8, 3),\ (-4, 3),\ (2, 3),\ (2, 4),\ (4, 5),\ (-10, 5),\ (-8, 6)

have no composite solution at all; an explanation of these ten cases remains to be found.

m′m^{\prime}Prime fact.φ(m′)\varphi(m^{\prime})Sm′S_{m^{\prime}}PP(c,α)(c,\alpha)nn
22113(−7,3),(−10,4)(-7,3),(-10,4)6
22115(−6,2)(-6,2)10
22117(−8,2)(-8,2)14
4222^{2}213(1,1),(−5,3),(−8,4)(1,1),(-5,3),(-8,4)12
4222^{2}215(3,1),(−7,3)(3,1),(-7,3)20
4222^{2}217(5,1),(−9,3)(5,1),(-9,3)28
4222^{2}2111(9,1)(9,1)44
8232^{3}413(5,1),(2,2),(−1,3),(−7,5),(−10,6)(5,1),(2,2),(-1,3),(-7,5),(-10,6)24
8232^{3}415(6,2),(1,3),(−9,5)(6,2),(1,3),(-9,5)40
8232^{3}417(10,2),(3,3)(10,2),(3,3)56
8232^{3}4111(7,3)(7,3)88
8232^{3}4113(9,3)(9,3)104
16242^{4}813(10,2),(7,3),(4,4),(1,5),(−2,6)(10,2),(7,3),(4,4),(1,5),(-2,6)48
16242^{4}815(7,5),(2,6)(7,5),(2,6)80
16242^{4}817(6,6)(6,6)112
33225(2,1),(−10,3)(2,1),(-10,3)15
33227(4,1)(4,1)21
332211(8,1)(8,1)33
332213(10,1)(10,1)39
9323^{2}625(6,3),(0,4),(−6,5)(6,3),(0,4),(-6,5)45
9323^{2}627(4,4),(−4,5)(4,4),(-4,5)63
9323^{2}6211(0,5)(0,5)99
9323^{2}6213(2,5)(2,5)117
9323^{2}6217(6,5)(6,5)153
9323^{2}6219(8,5)(8,5)171
55447(4,2),(−6,3)(4,2),(-6,3)35
554411(−2,3)(-2,3)55
554413(0,3)(0,3)65
554417(4,3)(4,3)85
554419(6,3)(6,3)95
554423(10,3)(10,3)115
776611(−4,4)(-4,4)77
776613(0,4)(0,4)91
776617(8,4)(8,4)119
776623(−8,5)(-8,5)161
776629(−2,5)(-2,5)203
776631(0,5)(0,5)217
776637(6,5)(6,5)259
776641(10,5)(10,5)287
1111101013(10,5)(10,5)143
1111101017(4,6)(4,6)187

Table 1. Sporadic solutions with a=1a = 1 and ω(m′)=1\omega(m^{\prime}) = 1 (m′≤34m^{\prime} \le34, P≤41P \le41).

nnm′m'PPaac(α)c(\alpha)admissible α\alpha(c,α)(c,\alpha)
41222−α2-\alpha1,…,61,\ldots,6(1,1),(0,2),(−1,3),(−2,4),(−3,5),(−4,6)(1,1),(0,2),(-1,3),(-2,4),(-3,5),(-4,6)
81234−α4-\alpha1,…,61,\ldots,6(3,1),(2,2),(1,3),(0,4),(−1,5),(−2,6)(3,1),(2,2),(1,3),(0,4),(-1,5),(-2,6)
91326−2α6-2\alpha1,…,61,\ldots,6(4,1),(2,2),(0,3),(−2,4),(−4,5),(−6,6)(4,1),(2,2),(0,3),(-2,4),(-4,5),(-6,6)
182326−3α6-3\alpha1,…,51,\ldots,5(3,1),(0,2),(−3,3),(−6,4),(−9,5)(3,1),(0,2),(-3,3),(-6,4),(-9,5)
2515220−4α20-4\alpha3,…,63,\ldots,6(8,3),(4,4),(0,5),(−4,6)(8,3),(4,4),(0,5),(-4,6)
3643212−3α12-3\alpha1,…,61,\ldots,6(9,1),(6,2),(3,3),(0,4),(−3,5),(−6,6)(9,1),(6,2),(3,3),(0,4),(-3,5),(-6,6)
5025220−5α20-5\alpha2,…,62,\ldots,6(10,2),(5,3),(0,4),(−5,5),(−10,6)(10,2),(5,3),(0,4),(-5,5),(-10,6)

Table 4 (PDF p. 11). Solutions with a≥2a \ge2 and φ(m′)Pa−1≤6\varphi(m')P^{a-1} \le6 (Proposition 4.11(i)).

Uniform bounds

Lemma 4.9 also makes the finiteness of Theorem 4.4 quantitative, uniformly in the parameters. For x≥1x \ge1 let Nφ(x)=#{m≥1:φ(m)≤x}N_\varphi(x)=\#\{m \ge1:\varphi(m)\le x\}; it is classical that Nφ(x)≪xN_\varphi(x)\ll x, indeed Nφ(x)∼ζ(2)ζ(3)ζ(6)xN_\varphi(x)\sim\frac{\zeta(2)\zeta(3)}{\zeta(6)}x [1].

Theorem 4.13 (Uniform bounds). Let c∈Zc \in\mathbb{Z}, α≥1\alpha\ge1, L:=∣c∣+α≥2L:=|c|+\alpha\ge2, and let ω0\omega_0 be the largest integer kk with k!≤L(k+1)k! \le L(k+1), so that ω0≪log⁡L/log⁡log⁡L\omega_0 \ll\log L/\log\log L; put B:=L(1+ω0)B:=L(1+\omega_0). Let n=m′Pan=m'P^a be a sporadic composite solution of (4), decomposed as in Lemma 4.3.

(i) If a=1a=1, then φ(m′)≤B\varphi(m')\le B and P≤L(B+2)P\le L(B+2).

(ii) If a≥2a\ge2, then φ(m′)Pa−1≤B\varphi(m')P^{a-1}\le B and P≤α+1+LP\le\alpha+1+\sqrt{L}.

Consequently, with absolute implied constants,

∣F(c,α)∣≪L2(log⁡L)2andmax⁡F(c,α)≪L4(log⁡L)3.|F(c,\alpha)|\ll L^2(\log L)^2 \qquad\text{and}\qquad\max F(c,\alpha)\ll L^4(\log L)^3.

:::`

Proof. Throughout, QQ is the largest prime factor of m′m' (Q=1Q=1 if m′=1m'=1), so that P≥Q+1P\ge Q+1 and Sm′≤ω(m′)(Q−1)≤ω(m′)(P−1)S_{m'}\le\omega(m')(Q-1)\le\omega(m')(P-1); and φ(m′)≥ω(m′)!\varphi(m')\ge\omega(m')!, since the ii-th prime is at least i+1i+1.

(i) Let a=1a=1, so m′≥2m'\ge2 and P≥3P\ge3. As in Proposition 4.10, φ(m′)=α\varphi(m')=\alpha is excluded. If φ(m′)<α\varphi(m')<\alpha then φ(m′)<L≤B\varphi(m')<L\le B. If φ(m′)>α\varphi(m')>\alpha, dividing (5) by P−1≥2P-1\ge2 gives

φ(m′)−α≤∣c∣P−1+αω(m′)≤∣c∣2+αω(m′),\varphi(m')-\alpha\le\frac{|c|}{P-1}+\alpha\omega(m')\le\frac{|c|}{2}+\alpha\omega(m'),

hence ω(m′)!≤φ(m′)≤L(1+ω(m′))\omega(m')!\le\varphi(m')\le L(1+\omega(m')), so ω(m′)≤ω0\omega(m')\le\omega_0 and φ(m′)≤B\varphi(m')\le B. In both cases (5) and Lemma 4.9 give P−1≤∣c+αSm′∣≤∣c∣+α(φ(m′)+1)≤∣c∣+α(B+1)P-1\le|c+\alpha S_{m'}|\le|c|+\alpha(\varphi(m')+1)\le|c|+\alpha(B+1), whence P≤L(B+2)P\le L(B+2).

(ii) Let a≥2a\ge2 and write (4) as (P−1)(φ(m′)Pa−1−α)=c+αSm′(P-1)(\varphi(m')P^{a-1}-\alpha)=c+\alpha S_{m'}. If φ(m′)Pa−1≤α\varphi(m')P^{a-1}\le\alpha, both assertions are trivial. Otherwise the right-hand side is positive; dividing by P−1P-1 and using Sm′≤ω(m′)(P−1)S_{m'}\le\omega(m')(P-1) gives φ(m′)Pa−1≤α+∣c∣+αω(m′)≤L(1+ω(m′))\varphi(m')P^{a-1}\le\alpha+|c|+\alpha\omega(m')\le L(1+\omega(m')), and ω(m′)!≤φ(m′)\omega(m')!\le\varphi(m') yields ω(m′)≤ω0\omega(m')\le\omega_0 and φ(m′)Pa−1≤B\varphi(m')P^{a-1}\le B. For the bound on PP, use instead Lemma 4.9: c+αSm′≤∣c∣+αφ(m′)+αc+\alpha S_{m'}\le|c|+\alpha\varphi(m')+\alpha, so that

φ(m′)(Pa−1(P−1)−α)≤∣c∣+αP.\varphi(m')\bigl(P^{a-1}(P-1)-\alpha\bigr)\le|c|+\alpha P.

If P(P−1)≤αP(P-1)\le\alpha then P≤αP\le\alpha. If P(P−1)>αP(P-1)>\alpha then, as Pa−1≥PP^{a-1}\ge P and φ(m′)≥1\varphi(m')\ge1, we get P2−(α+1)P−(α+∣c∣)≤0P^2-(\alpha+1)P-(\alpha+|c|)\le0, hence P≤12(α+1+(α+1)2+4L)≤α+1+LP\le\frac{1}{2}\left(\alpha+1+\sqrt{(\alpha+1)^2+4L}\right)\le\alpha+1+\sqrt{L}.

Counting. For a=1a=1 each m′m' determines PP, so there are at most Nφ(B)≪BN_\varphi(B)\ll B sporadic solutions. For a≥2a\ge2 there are ≪B\ll B choices of m′m', ≪L\ll L choices of PP and ≪log⁡B\ll\log B choices of aa, since Pa−1≤BP^{a-1}\le B. Hence ∣F(c,α)∣≪BLlog⁡B≪L2(log⁡L)2|F(c,\alpha)|\ll BL\log B\ll L^2(\log L)^2, as B≪Llog⁡LB\ll L\log L.

Size. Using m′≤2φ(m′)2m'\le2\varphi(m')^2 (Hardy–Wright [6]), a solution with a=1a=1 satisfies n=m′P≤2B2⋅L(B+2)≪LB3≪L4(log⁡L)3n=m'P\le2B^2\cdot L(B+2)\ll LB^3\ll L^4(\log L)^3, and a solution with a≥2a\ge2 satisfies n=m′Pa−1⋅P≤2φ(m′)2Pa−1⋅P≤2B2(α+1+L)≪L3(log⁡L)2n=m'P^{a-1}\cdot P\le2\varphi(m')^2P^{a-1}\cdot P\le2B^2(\alpha+1+\sqrt{L})\ll L^3(\log L)^2.

Thus ∣F(c,α)∣|F(c,\alpha)| and max⁡F(c,α)\max F(c,\alpha) are bounded by polynomials in ∣c∣+α|c|+\alpha. The census of Theorem 4.12 (∣F∣≤9|F|\le9 for L≤16L\le16), extended by a direct scan of n≤2⋅106n\le2\cdot10^6 to ∣c∣≤40|c|\le40, α≤12\alpha\le12 (where max⁡∣F∣=19\max|F|=19, at (36,12)(36,12)), suggests that the truth is far smaller; see Question 9.1.

Corollary 4.14. (i) If α≥3\alpha\ge3 is odd, there is no matched modulus, and for every cc the composite solution set of (4) is finite, of cardinality ≪(∣c∣+α)2log⁡2(∣c∣+α)\ll(|c|+\alpha)^2\log^2(|c|+\alpha).

(ii) For α=1\alpha=1 and c≤0c\le0 one has F(c,1)=∅F(c,1)=\varnothing: the equation φ(n)=c+Sn\varphi(n)=c+S_n has composite solutions only for c=−1c=-1 (the family 2p2p) and for c≥1c\ge1.

Proof. (i) A matched modulus mm satisfies φ(m)=α\varphi(m)=\alpha, which is impossible for odd α≥3\alpha\ge3 since φ(m)\varphi(m) is even for m≥3m\ge3 and φ(1)=φ(2)=1\varphi(1)=\varphi(2)=1; Theorem 4.13 then bounds the whole solution set. (ii) If nn is composite and not twice an odd prime, Theorem 1.1 gives φ(n)≥1+Sn>c+Sn\varphi(n)\ge1+S_n>c+S_n for c≤0c\le0; if n=2pn=2p then φ(n)=Sn−1\varphi(n)=S_n-1, so c=−1c=-1 and nn belongs to the matched family.

Numerical census

An exhaustive direct scan over composites n≤2⋅105n\le2\cdot10^5 and weights ∣c∣≤10|c|\le10, 1≤α≤61\le\alpha\le6 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 2⋅1052\cdot10^5; a small sample: The parity constraints are visible throughout: every solution found for (3,3)(3,3) is even and every solution for (0,3)(0,3) is odd, in accordance with Theorem 4.1.

(c,α)(c,\alpha)composite solutions n≤2⋅105n \le2 \cdot10^{5}
(1,1)(1,1)4, 12, 30
(0,2)(0,2)4, 18
(2,2)(2,2)8, 9, 24, 60, 70
(0,4)(0,4)8, 36, 45, 50, 91, 105, 126
(6,6)(6,6)27, 49, 72, 112, 180, 312, 380, 418, 462

Table 7.

Simultaneous equations

Write (Eφ)(E_\varphi), (Eτ)(E_\tau), (Eσ)(E_\sigma) for equation (2) with f=φ,τ,σf=\varphi,\tau,\sigma 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 (Eφ)(E_\varphi) and (Eτ)(E_\tau) simultaneously is n=4n=4. (ii) No integer n≥2n \ge2 satisfies (Eφ)(E_\varphi), (Eτ)(E_\tau) and (Eσ)(E_\sigma) simultaneously; indeed already (Eσ)(E_\sigma) alone has no composite solution, and no prime satisfies (Eτ)(E_\tau).

Proof. (i) By Theorems 1.1 and 3.1 the composite solutions of (Eφ)(E_\varphi) are {4,12,30}\{4,12,30\} and those of (Eτ)(E_\tau) are the prime squares; the intersection is {4}\{4\}, since neither 12 nor 30 is the square of a prime. One checks directly: φ(4)=2=1+φ(2)\varphi(4)=2=1+\varphi(2) and τ(4)=3=1+τ(2)\tau(4)=3=1+\tau(2).

(ii) For a prime pp, (Eτ)(E_\tau) reads 2=32=3, 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 {4}\{4\} and then to ∅\varnothing.

The average size of the deficiency

Theorem 1.1 says that the deficiency

Δ(n):=φ(n)−1−∑p∣nφ(p)\Delta(n) := \varphi(n)-1-\sum_{p\mid n}\varphi(p)

is nonnegative for composite n≠2pn\ne2p and vanishes only thrice. How large is it on average? The answer is: as large as φ\varphi itself, the subtracted term being negligible at the scale x2x^2.

Theorem 6.1. Let Aj=(−1)j−1dj−1dsj−1(ζ(s)s)∣s=2A_j=(-1)^{j-1}\left.\frac{\mathrm{d}^{j-1}}{\mathrm{d}s^{j-1}}\left(\frac{\zeta(s)}{s}\right)\right|_{s=2}, so that A1=π212A_1=\frac{\pi^2}{12} and A2=ζ(2)4−ζ′(2)2A_2=\frac{\zeta(2)}{4}-\frac{\zeta'(2)}{2}.

For every fixed M≥1M\ge1,

∑n≤xΔ(n)=3π2x2−∑j=1MAjx2log⁡jx+O(x2log⁡M+1x).\sum_{n\le x}\Delta(n)=\frac{3}{\pi^2}x^2-\sum_{j=1}^{M}A_j\frac{x^2}{\log^j x}+O\left(\frac{x^2}{\log^{M+1}x}\right).

In particular the mean value 1x∑n≤xΔ(n)∼3π2x\frac{1}{x}\sum_{n\le x}\Delta(n)\sim\frac{3}{\pi^2}x.

Proof. Since φ(p)=p−1\varphi(p)=p-1, we have ∑p∣nφ(p)=β(n)−ω(n)\sum_{p\mid n}\varphi(p)=\beta(n)-\omega(n), where β(n)=∑p∣np\beta(n)=\sum_{p\mid n}p is the sum of the distinct prime divisors of nn. Hence

∑n≤xΔ(n)=∑n≤xφ(n)−⌊x⌋−∑n≤xβ(n)+∑n≤xω(n).\sum_{n\le x}\Delta(n)=\sum_{n\le x}\varphi(n)-\lfloor x\rfloor-\sum_{n\le x}\beta(n)+\sum_{n\le x}\omega(n).

The first sum equals 3π2x2+O(xlog⁡x)\frac{3}{\pi^{2}}x^{2}+O(x\log x) [6 Th. 330], and the last one is O(xlog⁡log⁡x)O(x\log\log x) [6 Th. 430]. The leading term of ∑n≤xβ(n)\sum_{n\le x}\beta(n), namely π212x2/log⁡x\frac{\pi^{2}}{12}x^{2}/\log x, is due to Alladi and Erdős [2], and the full expansion ∑n≤xβ(n)=∑j=1MAjx2/log⁡jx+O(x2/log⁡M+1x)\sum_{n\le x}\beta(n)=\sum_{j=1}^{M}A_jx^{2}/\log^{j}x+O(x^{2}/\log^{M+1}x) to De Koninck and Ivić [3]. Combining these estimates proves the theorem.

Remark 6.2. The leading term also follows from the exact identity ∑n≤x∑p∣nφ(p)=∑k≥1P(x/k)\sum_{n\le x}\sum_{p\mid n}\varphi(p)=\sum_{k\ge1}P(x/k), where P(y)=∑p≤y(p−1)P(y)=\sum_{p\le y}(p-1), together with the prime number theorem. Numerically, (∑n≤x∑p∣nφ(p))log⁡x/x2(\sum_{n\le x}\sum_{p\mid n}\varphi(p))\log x/x^{2} equals 0.9153, 0.8978, 0.8858 at x=105,106,107x=10^{5},10^{6},10^{7} (exact sieve computations), whereas the expansion ∑j≤MAj/log⁡j−1x\sum_{j\le M}A_j/\log^{j-1}x truncated at M=2M=2 gives 0.8989, 0.8862, 0.8771 and at M=3M=3 reduces the discrepancy at x=107x=10^{7} to 0.2%.

Iterated totients on the prime divisors

In this section we replace the prime values φ(p)\varphi(p) in (1) by their iterates and determine, for every k≥1k\ge1, all positive integers nn with

φ(n)=1+∑p∣nφ(k)(p).(7)\varphi(n)=1+\sum_{p\mid n}\varphi^{(k)}(p). \tag*{(7)}

The answer rests on Theorem 1.1 and on the following monotonicity.

Lemma 7.1. For every n≥1n\ge1 the sequence (φ(j)(n))j>1(\varphi^{(j)}(n))_{j>1} is non-increasing. Moreover, for every prime p≥3p\ge3 and every k≥2k\ge2, φ(k)(p)≤φ(p−1)≤p−12\varphi^{(k)}(p)\le\varphi(p-1)\le\frac{p-1}{2}.

Proof. Since φ(m)≤m\varphi(m)\le m for all m≥1m\ge1, we have φ(j+1)(n)=φ(φ(j)(n))≤φ(j)(n)\varphi^{(j+1)}(n)=\varphi(\varphi^{(j)}(n))\le\varphi^{(j)}(n). For p≥3p\ge3 prime, φ(2)(p)=φ(p−1)\varphi^{(2)}(p)=\varphi(p-1) and p−1p-1 is even, so φ(p−1)≤(p−1)/2\varphi(p-1)\le(p-1)/2; the first part gives φ(k)(p)≤φ(2)(p)\varphi^{(k)}(p)\le\varphi^{(2)}(p) for k≥2k\ge2.

Write X:={1,2,4,12,30}∪{p,2p:p odd prime}X:=\{1,2,4,12,30\}\cup\{p,2p:p\text{ odd prime}\}. For n∉Xn\notin X, nn is composite and not twice an odd prime, and n∉{4,12,30}n\notin\{4,12,30\}; hence Theorem 1.1 gives φ(n)>1+∑p∣nφ(p)≥1+∑p∣nφ(k)(p)\varphi(n)>1+\sum_{p\mid n}\varphi(p)\ge1+\sum_{p\mid n}\varphi^{(k)}(p) by Lemma 7.1. Thus, for every k≥1k\ge1, every solution of (7) lies in XX, and it remains to examine the elements of XX.

Theorem 7.2. The solutions of (7) are exactly:

(i) n∈{1,4,12,30}n\in\{1,4,12,30\} if k=1k=1;

(ii) n∈{1,3,4,10}n\in\{1,3,4,10\} if k=2k=2;

(iii) n∈{1,3,4}n\in\{1,3,4\} if k≥3k\ge3.

Proof. The values involved are collected in the following table, where the right-hand side of (7) is denoted Rk(n)R_k(n):

nnφ(n)\varphi(n)R1(n)R_1(n)R2(n)R_2(n)Rk(n)R_k(n), k≥3k\ge3
11111
21222
42222
124433
308854
32322
62433
104643

Table 1 (PDF p. 15).

(For n=1n = 1 the sum is empty. For k≥3k \ge3, φ(k)(2)=φ(k)(3)=1\varphi^{(k)}(2) = \varphi^{(k)}(3) = 1 and φ(k)(5)=1\varphi^{(k)}(5) = 1.) This settles n∈{1,2,4,12,30}n \in\{1, 2, 4, 12, 30\} for all kk, and n∈{6,10}n \in\{6, 10\} once these are shown to be the only candidates among the 2p2p.

Case k=1k = 1. For an odd prime pp, φ(p)=p−1<p=R1(p)\varphi(p) = p - 1 < p = R_1(p), and φ(2p)=p−1<p+1=R1(2p)\varphi(2p) = p - 1 < p + 1 = R_1(2p). With the table, the solutions are {1,4,12,30}\{1, 4, 12, 30\}.

Odd primes, k≥2k \ge2. Let n=pn = p be an odd prime. For k=2k = 2, (7) reads p−1=1+φ(p−1)p - 1 = 1 + \varphi(p - 1), i.e. φ(p−1)=p−2\varphi(p - 1) = p - 2, which forces p−1p - 1 to be prime; p−1p - 1 and pp being consecutive primes, p=3p = 3. For k≥3k \ge3, Lemma 7.1 gives p−1=1+φ(k)(p)≤1+p−12p - 1 = 1 + \varphi^{(k)}(p) \le1 + \frac{p-1}{2}, hence p≤3p \le3, and p=3p = 3 is a solution by the table.

Twice an odd prime, k≥2k \ge2. Let n=2pn = 2p with pp an odd prime, so φ(n)=p−1\varphi(n) = p - 1 and Rk(2p)=1+φ(k)(2)+φ(k)(p)=2+φ(k)(p)R_k(2p) = 1 + \varphi^{(k)}(2) + \varphi^{(k)}(p) = 2 + \varphi^{(k)}(p). For k=2k = 2 this gives φ(p−1)=p−3\varphi(p - 1) = p - 3; since φ(p−1)≤p−12\varphi(p - 1) \le\frac{p-1}{2} we get p≤5p \le5. For k≥3k \ge3, Lemma 7.1 gives p−1≤2+p−12p - 1 \le2 + \frac{p-1}{2}, again p≤5p \le5. Thus n∈{6,10}n \in\{6, 10\}, and the table shows that 10 is a solution for k=2k = 2 only, while 6 never is.

Remark 7.3. The solution sets shrink from k=1k = 1 to k=2k = 2 and stabilise for all $k \ge 3. The only solution lost between k=2k = 2 and k=3k = 3 is n=10n = 10, because φ(3)(5)=1<φ(2)(5)=2\varphi^{(3)}(5) = 1 < \varphi^{(2)}(5) = 2; the stabilisation reflects the fact that, for every prime p≥3p \ge3, φ(2)(p)=φ(p−1)\varphi^{(2)}(p) = \varphi(p - 1) is even, so the iterates beyond the second are at most half of it and the right-hand side of (7) can only reach φ(n)\varphi(n) for the smallest values of nn. All three solution sets were confirmed by exhaustive computation up to 10510^5 for k≤8k \le8.

The weighted form of (7), φ(n)=c+α∑p∣nφ(k)(p)\varphi(n) = c + \alpha\sum_{p\mid n} \varphi^{(k)}(p), behaves differently from the case k=1k = 1 treated in § 4: since φ(k)(p)\varphi^{(k)}(p) is no longer linear in pp, 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 p≥7p \ge7 be a prime. Then φ(p−1)=p−32\varphi(p - 1) = \frac{p-3}{2} if and only if p−12\frac{p-1}{2} is prime, i.e. pp is a safe prime.

Proof. Write p−1=2eup - 1 = 2^e u with uu odd, e≥1e \ge1. Then φ(p−1)=2e−1φ(u)\varphi(p - 1) = 2^{e-1}\varphi(u). If e≥2e \ge2, then φ(p−1)≤2e−1u=p−12⋅φ(u)u≤p−12\varphi(p - 1) \le2^{e-1}u = \frac{p-1}{2}\cdot\frac{\varphi(u)}{u} \le\frac{p-1}{2}, with φ(p−1)=p−32\varphi(p - 1) = \frac{p-3}{2} only if 2e−1(u−φ(u))=12^{e-1}(u - \varphi(u)) = 1, impossible for e≥2e \ge2. So e=1e = 1, p−1=2up - 1 = 2u, φ(p−1)=φ(u)\varphi(p - 1) = \varphi(u), and φ(u)=u−1\varphi(u) = u - 1 holds if and only if u=p−12u = \frac{p-1}{2} is prime; since p≥7p \ge7, u≥3u \ge3 is odd.

Proposition 7.5. The composite solutions of φ(n)=4∑p∣nφ(2)(p)\varphi(n) = 4 \sum_{p\mid n} \varphi^{(2)}(p) are exactly

{8,24,60}∪{3p, 4p:p safe prime, p≥7}∪{6p:p=4q+1 prime, q prime}.\{8, 24, 60\} \cup\{3p,\ 4p : p\ \text{safe prime},\ p \ge7\} \cup\{6p : p = 4q + 1\ \text{prime},\ q\ \text{prime}\}.

In particular, the solution set is infinite if and only if there are infinitely many primes pp with p−12\frac{p-1}{2} or p−14\frac{p-1}{4} prime; under Dickson’s conjecture all three families are infinite.

Proof. Let PP be the largest prime factor of nn and write n=mPan = mP^a, P∤mP \nmid m. If a≥2a \ge2, the argument of Theorem 4.4 (case a≥2a \ge2) applies verbatim, since φ(2)(p)≤φ(p)\varphi^{(2)}(p) \le\varphi(p), and the resulting finite search gives only n=8n = 8. Let a=1a = 1 and m≥2m \ge2. Writing Sm(2)=∑q∣mφ(q−1)S_m^{(2)} = \sum_{q\mid m} \varphi(q - 1), the equation reads

φ(m)(P−1)=4Sm(2)+4φ(P−1).\varphi(m)(P - 1) = 4S_m^{(2)} + 4\varphi(P - 1).

Since φ(P−1)≤P−12\varphi(P - 1) \le\frac{P-1}{2}, this gives φ(m)≤2+4Sm(2)P−1\varphi(m) \le2 + \frac{4S_m^{(2)}}{P-1}. If φ(m)≥4\varphi(m) \ge4 then P−1≤2Sm(2)≤2∑q∣m(q−2)P - 1 \le2S_m^{(2)} \le2\sum_{q\mid m}(q - 2), which bounds PP in terms of mm while PP exceeds every prime factor of mm; the finitely many cases are n=24=8⋅3n = 24 = 8 \cdot3 and n=60=12⋅5n = 60 = 12 \cdot5, where equality φ(m)=2+4Sm(2)/(P−1)=4\varphi(m) = 2 + 4S_m^{(2)}/(P - 1) = 4 holds. Otherwise φ(m)=2\varphi(m) = 2, i.e. m∈{3,4,6}m \in\{3, 4, 6\}. For m∈{3,4}m \in\{3, 4\} one has Sm(2)=1S_m^{(2)}=1 and the equation becomes φ(P−1)=P−32\varphi(P-1)=\frac{P-3}{2}, i.e. PP is a safe prime by Lemma 7.4 (and P≥7P\ge7 since P>3P>3 and P=5P=5 fails). For m=6m=6, S6(2)=2S_6^{(2)}=2 and the equation becomes φ(P−1)=P−52\varphi(P-1)=\frac{P-5}{2}; writing P−1=2euP-1=2^e u as in Lemma 7.4, this forces e=2e=2 and φ(u)=u−1\varphi(u)=u-1, i.e. P=4q+1P=4q+1 with qq prime.

The sets were confirmed by exhaustive computation up to 2⋅1052\cdot10^5: of the 1029 composite solutions, 872 are of the form 3p3p or 4p4p with pp safe, 154 of the form 6p6p with p=4q+1p=4q+1, and 3 are sporadic. Thus, for k≥2k\ge2, finiteness of the solution sets of the weighted iterated equation is not a theorem but is tied to the distribution of primes pp for which φ(p−1)\varphi(p-1) is prescribed, a question of Sophie Germain type.

Numerical verification

All finite claims of this paper were verified by an exhaustive computation over 2≤n≤2⋅1052\le n\le2\cdot10^5 using SymPy. The composite solution sets found were: {4,12,30}\{4,12,30\} for (Eφ)(E_\varphi), in agreement with [8]; {p2≤2⋅105}\{p^2\le2\cdot10^5\} and nothing else for (Eτ)(E_\tau); the empty set for (Eσ)(E_\sigma), for J2J_2, for the weighted equation with (c,α)=(1,2)(c,\alpha)=(1,2), and for the triple system; and {4}\{4\} for the pair (Eφ)∧(Eτ)(E_\varphi)\land(E_\tau). The expansion of Theorem 6.1 was compared with exact sieve computations up to x=107x=10^7, 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 n≤105n\le10^5 and 1≤k≤81\le k\le8. The census of Theorem 4.12 was cross-checked against a direct scan of all composites n≤106n\le10^6, and the values ∣F(c,1)∣\lvert F(c,1)\rvert for 1≤c≤20001\le c\le2000 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 {4,6,22}\{4,6,22\} [9] and, in the unsolved direction, Lehmer’s problem [7]. We close with four problems.

Question 9.1. Theorem 4.13 gives ∣F(c,α)∣≪L2(log⁡L)2\lvert F(c,\alpha)\rvert\ll L^2(\log L)^2 with L=∣c∣+αL=\lvert c\rvert+\alpha, whereas Theorem 4.12 gives ∣F(c,α)∣≤9\lvert F(c,\alpha)\rvert\le9 for L≤16L\le16, a direct scan of n≤2⋅106n\le2\cdot10^6 gives ∣F(c,α)∣≤19\lvert F(c,\alpha)\rvert\le19 for ∣c∣≤40\lvert c\rvert\le40, α≤12\alpha\le12, and ∣F(c,1)∣≤9\lvert F(c,1)\rvert\le9 for all $1\le c\le 2000. Is sup⁡c∣F(c,α)∣\sup_c\lvert F(c,\alpha)\rvert finite for each fixed α\alpha? The maximizers observed, (6,6)(6,6), (12,4)(12,4), (40,8)(40,8), (27,9)(27,9), (36,12)(36,12), all satisfy α∣c\alpha\mid c, as one expects from (5): when α\alpha divides cc and φ(m′)\varphi(m'), the divisibility obstruction in P−1=(c+αSm′)/(φ(m′)−α)P-1=(c+\alpha S_{m'})/(\varphi(m')-\alpha) disappears. Is ∣F(c,α)∣\lvert F(c,\alpha)\rvert governed by gcd⁡(c,α)\gcd(c,\alpha) and the divisor structure of α\alpha?

Question 9.2. For α=1\alpha=1, equation (4) reads Δ(n)=c−1\Delta(n)=c-1, with Δ\Delta the deficiency of §6, so that ∣F(c,1)∣\lvert F(c,1)\rvert is the multiplicity of the value c−1c-1 of Δ\Delta on composite integers outside the family {2p}\{2p\}, the analogue for Δ\Delta of the classical multiplicity problems for φ\varphi [5]. For 1≤c≤20001\le c\le2000, F(c,1)F(c,1) is empty for 341 values of cc, the first being 6,12,22,23,24,30,42,46,60,726,12,22,23,24,30,42,46,60,72; the mean multiplicity is stable, close to 2; and every nonzero multiplicity for 1,…,91,\ldots,9 occurs, first at c=6,2,4,1,3,27,15,403,1047,943c=6,2,4,1,3,27,15,403,1047,943. Thus the analogue of Carmichael’s conjecture fails for Δ\Delta (F(c,1)F(c,1) is a singleton for c=2,8,10c=2,8,10). Does every multiplicity occur, as Ford proved for φ\varphi? Does the set of cc with F(c,1)=∅F(c,1)=\varnothing have positive density? Its parity bias is striking: it contains about 30% of the even values of cc against 5% of the odd ones, an even cc requiring an odd nn by Theorem 4.1(iii).

Question 9.3. Theorem 7.2 settles the iterated equation with c=α=1c=\alpha=1, and Proposition 7.5 shows that for (c,α)=(0,4)(c,\alpha)=(0,4) and k=2k=2 the solution set is infinite if and only if there are infinitely many safe primes. Describe, for general (c,α)(c,\alpha) and k≥2k\ge2, the conditional families of the weighted iterated equation φ(n)=c+α∑p∣nφ(k)(p)\varphi(n)=c+\alpha\sum_{p\mid n}\varphi^{(k)}(p): they are of the form {mp}\{mp\} with φ(m)≤α\varphi(m)\le\alpha and pp subject to a condition φ(k−1)(p−1)=ℓp+r\varphi^{(k-1)}(p-1)=\ell p+r, and one expects each of them to be infinite under Dickson’s conjecture.

Question 9.4. Theorem 6.1 describes the average of Δ(n)\Delta(n). Determine the distribution of Δ(n)/φ(n)\Delta(n)/\varphi(n), 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 {4,12,30}\{4,12,30\}, appears to be catalogued in the OEIS at the time of writing; submitting them would usefully anchor the problem in the literature.

References

  1. [1]P. T. Bateman, The distribution of values of the Euler function, Acta Arith. 21 (1972), 329–345.DOI
  2. [2]K. Alladi and P. Erdős, On an additive arithmetic function, Pacific J. Math. 71 (1977), 275–294.DOI
  3. [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. [4]M. W. Ecker, When does a sum of positive integers equal their product?, Math. Mag. 75 (2002), no. 1, 41–47.DOI
  5. [5]K. Ford, The number of solutions of φ(x) = m, Ann. of Math. (2) 150 (1999), 283–311.arxiv.org/abs/math/9907204
  6. [6]G. H. Hardy and E. M. Wright, An Introduction to the Theory of Numbers, 6th ed., Oxford Univ. Press, 2008.
  7. [7]D. H. Lehmer, On Euler’s totient function, Bull. Amer. Math. Soc. 38 (1932), 745–751.DOI
  8. [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. [9]M. V. Subbarao, On two congruences for primality, Pacific J. Math. 52 (1974), 261–268.
  10. [10]S. Thajoddin and S. Vangipuram, A note on Jordan’s totient function, Indian J. Pure Appl. Math. 19 (1988), no. 12, 1156–1161.

Paper details

vlnc:W_kwcbxa6p
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC0-1.0
Usage

views · 3

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Mathematics

Not recorded for this paper

View statement
Looking for related papers…
Contents