In 18th century, as one of the most outstanding mathematician, Euler first defined the Euler function $ \varphi(n) $ of a positive integer $ n $ to be the number of positive integers not greater than $ n $ but prime to $ n $ [1]. It's well known that as one of the important number theory functions, Euler function was applied widely. Euler function played a key role in RSA public-key cryptosystem since 1970's, and it is also one of the important tools to seek the theoretical basis for the generators of circle groups. There were many interesting open problems on Euler function [2]. For example, Carmichael conjectured that for any positive integer $ n $, there exists a positive integer $ m $ such that $ m\neq n $ and $ \varphi(m) = \varphi(n) $. And then Schinzel conjectured that for any fixed positive integer $ k $, the equation $ \varphi(n+k) = \varphi(n) $ has infinitely many positive integer solutions for $ n $.
On the other hand, in 1938, for any odd prime $ p $, Lehmer [3] established the following important congruence identity
where $ q_{r}(n) $ denotes the Euler quotient, i.e., $ q_{r}(n) = \frac{r^{\varphi(n)}-1}{n}, n $ and $ r\geq 2 $ are both natural numbers with $ \gcd(n, r) = 1. $
By using (1.1) and the others similar congruences identity, Lehmer obtained many ways to prove the first case of the well-known Fermat's last theorem [4]. Until 2002 and 2007, basing on (1.1) and the other congruence identities given by Lehmer, Cai, etc [5, 6] generalized the modulo from the square of a prime to the square of any positive integer, and defined the generalized Euler function for any positive integer $ n $ to be
i.e., $ \varphi_e(n) $ is the number of positive integers not greater than $ [\frac{n}{e}] $ but prime to $ n $, where $ e $ is a positive integer and $ [x] $ is the greatest integer which is not greater than $ x $. It's easy to verify that $ \varphi_1(n) = \varphi(n) $ is the known Euler function of $ n $, and
where $ \mu(n) $ is the Möbius function, i.e.,
when $ n = \prod\limits_{i = 1}^k p_i^{\alpha_i}(\alpha_i\geq1) $ is a positive integer and $ p_1, \cdots, p_k $ are distinct primes. Easily to see that for any positive integer $ n\geq 2 $,
On the other hand, for $ e = 1 $, the following computing formula for the generalized Euler function is well-known
Therefore one can naturally to ask the following
Question For any fixed positive integer $ e $, determine the explicit algorithm formula for the generalized Euler function $ \varphi_e (n) $.
Fixed a positive integer $ n = \prod\limits^k_{i = 1}p^{\alpha_i}_i\geq 2 $, where $ p_1, \cdots, p_k $ are distinct primes and $ \alpha_1, \cdots, \alpha_k $ are positive integers, denote $ \Omega(n) = \sum\limits^k_{i = 1}\alpha_i $ and $ \omega(n) = k $. Especially, $ \Omega(1) = \omega(1) = 0 $.
In recent years, Cai etc [7, 8] obtained the accurate calculation formula for $ \varphi_e(n)\; (e = 2, 3, 4, 6) $, and then, by using properties for Legendre or Jacobi symbols, they also got some necessary and sufficient conditions for that $ \varphi_e(n) $ and $ \varphi_e(n+1)(e = 2, 3, 4) $ are both odd or even numbers.
Proposition 1.1 [7, 8] Let $ p_1, \cdots, p_k $ be distinct primes, $ \alpha_1, \cdots, \alpha_k $ be positive integers, and $ n_1 = \prod\limits_{i = 1}^{k}p_{i}^{\alpha_{i}} $.
(1) If $ \gcd(p_{i}, 3) = 1\; (i = 1, \cdots, k) $ and $ n = 3^{\alpha}n_1>3 $, then
(2) If $ \alpha $ is a nonnegative integer and $ n = 2^{\alpha}n_1>4, $ then
(3) If $ \gcd(p_{i}, 6) = 1(i = 1, \cdots, k) $ and $ n = 2^{\alpha}3^{\beta}n_1>6 $, then
Recently, we [9] obtained the formula for $ \varphi_5(n) $ and some sufficient conditions for $ 2|\varphi_5(n) $. The present paper continues the study, based on the elementary methods and techniques, the computing formula for $ \varphi_e(n)\; (e = p, p^2, pq) $ is obtained, where $ p $ and $ q $ are distinct primes (Theorems 1.1–1.5).
For convenience, throughout the paper, we assume that $ p, \; q, \; p_1, \cdots, p_k $ are distinct primes, $ \alpha_1, \cdots, \alpha_k $ are positive integers, $ \alpha $ and $ \beta $ are both nonnegative integers, and
Theorem 1.1 If $ n = p^{\alpha}n_1>p, $ then
Theorem 1.2 If $ n = p^{\alpha}n_1>p^2, $ then
Theorem 1.3 For $ n = p^{\alpha}n_1>p^2 $ and $ \alpha\leq 2 $.
(1) If $ \alpha = 0 $, then
(2) If $ \alpha = 1 $, then
(3) If $ \alpha = 2 $, then
Theorem 1.4 If $ n = p^{\alpha}q^{\beta}n_{1}>pq $, then
Theorem 1.5 For $ n = p^{\alpha}q^{\beta}n_{1}>pq $.
(1) If $ \alpha = \beta = 0 $, then
(2) If $ \alpha = 1 $ and $ \beta = 0 $, then
(3) If $ \alpha = 0 $ and $ \beta = 1 $, then
(4) If $ \alpha = \beta = 1 $, then
(5) If $ \alpha\geq 2 $ and $ \beta = 0 $, then
(6) If $ \alpha\geq 2 $ and $ \beta = 1 $, then
(7) If $ \beta\geq 2 $ and $ \alpha\in\{0, 1\} $, then
Remark By taking $ p = 3 $ in Theorem 1.1, or $ p = 2 $ in Theorems 1.2–1.3, one can get (1) or (2) of Proposition 1.1, respectively. And by taking $ p = 2 $ and $ q = 3 $ in Theorems 1.4–1.5, one can get (3) of Proposition 1.1. The details is left to interested readers.
Proof for Theorem 1.1 (1) If $ \alpha = 0 $ and $ p_{i}\equiv-1\; ({\rm mod}\ p)\; (i = 1, \cdots, k) $, i.e., $ n = n_1 $ and for any $ d\mid n_1, d\equiv\pm1({\rm mod}\ p) $. Then by (1.2)–(1.4), we have
(a) If $ 2\mid\Omega(n) $ and $ 2\mid k $, then by (2.1) and $ n = n_1 $, we have $ \Omega(n) = \Omega(n_1), \omega(n) = \omega(n_1) $ and
(b) If $ 2\mid\Omega(n) $ and $ 2\nmid k $, then by (2.1) we have
For the case $ 2\nmid\Omega(n) $ and $ 2\nmid k $ or $ 2\nmid\Omega(n) $ and $ 2\mid k $, in the same proof, we can get
(2) If $ \alpha = 1 $ and for any $ i = 1, \cdots, k, p_{i}\equiv-1({\rm mod}\ p) $, i.e., $ n = pn_1 $ and for any $ d\mid n_1, d\equiv\pm1({\rm mod}\ p) $. Then by (1.2)–(1.3), (2.2) and $ \gcd(p, n_1) = 1 $, we have
and then
(3) If $ \alpha\geq2 $, i.e., $ n = p^{\alpha}n_1 $, then by $ \gcd(p, n_1) = 1 $ and (1.2)–(1.3), we have
(4) If $ \alpha = 0 $ and $ p_{i}\equiv1({\rm mod} \ p)(i = 1, \cdots, k) $, i.e., $ n = n_1 $ and for any $ d\mid n_1, d\equiv1({\rm mod}\ p) $. Then by (1.2) and (1.4), we have
(5) If $ \alpha = 1 $ and $ p_{i}\equiv1({\rm mod}\ p)(i = 1, \cdots, k) $, i.e., $ n = pn_1 $, then $ \varphi(n) = (p-1)\varphi(n_1) $ and for any $ d\mid n_1, d\equiv1({\rm mod}\ p) $. Thus by (1.2)–(1.3), $ \gcd(p, n_1) = 1 $ and (4) we have
Now from (2.2)–(2.6), Theorem 1.1 is proved.
Proof for Theorem 1.2 (1) For the case $ \alpha = 0 $, the result is obvious.
(2) If $ \alpha = 1 $, i.e., $ n = pn_1 $, then by $ \gcd(p, n_1) = 1 $ and (1.2)–(1.3), we have
(3) If $ \alpha = 2 $, i.e., $ n = p^2n_1 $, then by $ \gcd(p, n_1) = 1 $ and (1.2)–(1.3), we have
(4) If $ \alpha\geq3 $, i.e., $ n = p^{\alpha}n_1 $, then by $ \gcd(p, n_1) = 1 $ and (1.2)–(1.3), we have $ \varphi(n) = p^2(p^{\alpha-2}-p^{\alpha-3})\varphi(n_1), $ and then
Now from (2.7)–(2.9), we complete the proof of Theorem 1.2.
Proof for Theorem 1.3 (1) If $ \alpha = 0 $, i.e., $ n = n_1, $ and then $ \gcd(n, p) = 1 $. Suppose that $ p_i\equiv 1\; ({\rm mod}\ p^2)\; (i = 1, \cdots, k) $, then for any $ d\mid n, d\equiv 1\; ({\rm mod}\ p^2) $, thus by (1.2)–(1.4), we have
Suppose that $ p_i\equiv -1\; ({\rm mod}\ p^2)\; (i = 1, \cdots, k) $, i.e, for any $ d\mid n, d\equiv \pm 1\; ({\rm mod}\ p^2) $, and then by (1.2), (1.4) and the proof of Theorem 1.1 (1), we can get
Now from (2.10)–(2.11), we complete the proof of (1).
(2) If $ \alpha = 1 $, i.e, $ n = pn_1, $ then by $ \gcd(p, n_1) = 1 $, we have
And so by Theorems 1.1–1.2, (2.12) and (1), we can obtain
This completes the proof of (2).
(3) If $ \alpha = 2 $, i.e, $ n = p^2n_1 $, then by $ \gcd(p, n_1) = 1 $, we have
Thus by Theorems 1.1–1.2 and (2.13), in the same proof as that of Theorem 1.3 (2), (3) is immediate.
This completes the proof of Theorem 1.3.
Proof for Theorem 1.4 (1) If $ \alpha = 0, \beta = 0 $, the result is obvious.
(2) If $ \alpha = 1, \beta = 0 $, i.e., $ n = pn_1 $, then by $ \gcd(pq, n_1) = \gcd(p, q) = 1 $ and (1.2)–(1.3), we have
(3) For the case $ \alpha = 1, \beta = 0 $, in the same proof of (2), the result is obvious.
(4) If $ \alpha = \beta = 1 $, i.e., $ n = pqn_1 $, then by $ \gcd(pq, n_1) = \gcd(p, q) = 1 $ and (1.2)–(1.3), in the same proof as that of (2), (4) is immediate.
(5) If $ \alpha\geq2 $ and $ \beta = 0 $, i.e., $ n = p^{\alpha}n_1 $, then by $ \gcd(p, n_1) = 1 $ and (1.2)–(1.3), we can obtain
While by $ \alpha\geq 2 $ and (1.2)–(1.4), we know that
thus by (2.15)–(2.16), we have $ \varphi_{pq}(n) = \varphi_q(p^{\alpha-1}n_1) $. Thus (5) is proved.
(6) If $ \alpha\geq2 $ and $ \beta = 1 $, i.e., $ n = p^{\alpha}qn_1 $, then by $ \gcd(p, n_1) = 1 $, we have
Thus by (1.2)–(1.4), (2.16) and (2.17), we can get
(7) If $ \alpha\geq2 $ and $ \beta\geq2 $, then by $ \gcd(pq, n_1) = \gcd(p, q) = 1 $, and (1.2)–(1.4), we have
This completes the proof of (7).
Proof for Theorem 1.5 (1) For the case $ \alpha = \beta = 0 $, i.e., $ n = n_1 $.
(i) If $ p_i\equiv 1({\rm mod}\ pq)(i = 1, \cdots, k), $ then for any $ d\mid n, d\equiv 1({\rm mod}\ pq). $ Thus by (1.2) and (1.4), we have
(ii) If $ p_i\equiv -1({\rm mod}\ pq)(i = 1, \cdots, k), $ i.e., for any $ d\mid n, d\equiv\pm 1({\rm mod}\ pq). $ Then by (1.2)–(1.4) and the proof of Theorem 1.1 (1), we have
From (2.18)–(2.19), we complete the proof of (1).
(2) For $ \alpha = 1 $ and $ \beta = 0 $, i.e., $ n = pn_1, $ then by $ \gcd(pq, n_1) = \gcd(p, q) = 1 $, we have
(i) If $ p_i\equiv 1({\rm mod}\ pq), $ then $ p_i\equiv 1({\rm mod}\ q)(i = 1, \cdots, k). $ And so by Theorem 1.1, Theorem 1.4 and (2.18), we have
(ii) If $ p_i\equiv -1({\rm mod}\ pq), $ then $ p_i\equiv -1({\rm mod}\ q)(i = 1, \cdots, k), $ thus by Theorem 1.1, Theorem 1.4, and (2.19), we have
Now from (2.20)–(2.21), we complete the proof of (2).
(3) For $ \alpha = 0 $ and $ \beta = 1 $, in the same proof as that of (2), the result is immediate.
(4) For $ \alpha = \beta = 1 $, i.e., $ n = pqn_1, $ then by $ \gcd(pq, n_1) = \gcd(p, q) = 1 $, we have
(i) If $ p_i\equiv 1({\rm mod}\ pq), $ i.e., $ p_i\equiv 1({\rm mod}\ q) $ and $ p_i\equiv 1({\rm mod}\ q)(i = 1, \cdots, k). $ Then by Theorem 1.1, Theorem 1.4 and (2.18), we have
(ii) If $ p_i\equiv -1({\rm mod}\ pq), $ then by Theorem 1.1, Theorem 1.4 and (2.19), we have
Now from (2.22)–(2.23), we complete the proof of (4).
(5) For $ \alpha\geq 2 $ and $ \beta = 0 $, i.e., $ n = p^{\alpha}n_1, $ then by $ \gcd(n_1, pq) = \gcd(p, q) = 1 $, we have
(i) If $ p\equiv p_i\equiv 1({\rm mod}\ q)(i = 1, \cdots, k), $ then by Theorem 1.1, Theorem 1.4 and (2.24), we have
(ii) If $ p\equiv p_i\equiv -1({\rm mod}\ q)(i = 1, \cdots, k), $ then by Theorem 1.1, Theorem 1.4 and (2.24), we have
Now from (2.25)–(2.26), we complete the proof of (5).
(6) For $ \alpha\geq 2 $ and $ \beta = 1 $, i.e., $ n = p^{\alpha}qn_1, $ then by $ \gcd(n_1, pq) = \gcd(p, q) = 1 $, we have
(i) If $ p\equiv p_i\equiv 1({\rm mod}\ q)(i = 1, \cdots, k), $ then by Theorem 1.1, Theorem 1.4 and (2.27), we have
(ii) If $ p\equiv p_i\equiv -1({\rm mod}\ q)(i = 1, \cdots, k), $ then by Theorem 1.1, Theorem 1.4 and (2.27), in the same proof as that of case (5) (ii), one can get
Now from (2.28)–(2.29), we complete the proof of (6).
(7) If $ \beta\geq 2 $ and $ \alpha = 0 $ or $ 1 $, in the same proofs as those of (4) and (5), the result is obvious.
From the above, Theorem 1.5 is proved.