Abstract
The modified Totient function of Carmichael is revisited, where important properties have been highlighted. Particularly, an iterative scheme is given for calculating the function. A comparison between the Euler and the reduced totient functions aiming to quantify the reduction between is given.
1. Introduction
More than a century ago, Robert D. Carmichael (1879–1967) [] introduced a function known as Carmichael’s function. This is spread as the reduced totient function which can be seen as the smallest divisor of Euler’s totient function verifying Euler’s theorem. This Totient function is deeply related to prime numbers and integer orders [,,,], mainly used for primality testing. Furthermore, the reader may cross in the literature that the Carmichael function represents the exponent ( represents the order of the largest cyclic subgroup of ) of the group .
In this paper, we aim to analyse and we present some of its important properties. Mainly, we give in Lemma 3 a suitable iterative scheme for calculating the values of . In addition, we prove the following estimation
which could be considered an indicator of reduction of the modified totient function and we can easily duduce that
The complexity of finding the inverse function of Carmichael is more complex than finding the inverse of Euler function.
2. Preliminaries
In the literature, Carmichael’s new totient function named is defined as follows: For the prime decomposition of a given natural integer
where (LCM denotes the least common multiple.) we have:
We refer to [,,,] and references therein for the properties of the function .
Figure 1 and Figure 2 produce the first thousand values of and . The points on the top lines represent when p is a prime number.

Figure 1.
The first 1000 values of the Carmichael function.

Figure 2.
The first 1000 values of the Euler function.
In this section, we show how we built the modified Totient function .
Euler theorem [] states that if n and m are co-prime positive integers, then
where is Euler’s Totient function. It is known that for any prime number p, we have since all the positive integers less than p are co-prime with p.
If p and q are two different primes, then
The two integers and can be chosen in such a way that
then we obtain:
We can also conclude the following
In the next definition, we introduce a new function related to the Totient function of Euler given as follows:
Definition 1.
Let
According to the above definition, we will have:
and by using previous results, we can conclude the following Lemma.
Lemma 1.
Let p and q two different primes
- If , then
- For all integer m, then
Let us generalize the previous Lemma for , but the function needs also to be generalized.
From Euler theorem, we can write
Then, the function at should be defined as follows:
Example 1.
If , then
so,
The following proposition provides a recursive scheme to evaluate the for different situations.
Proposition 1.
can be calculated by a recursive way:
and
Again, we generalize our Lemma 1 result for , where , as follows:
Lemma 2.
If and , then
Proof.
- If , then
- For , we have
- It concludes that
- –
- If then
- –
- If then
- –
- Therefore,
we can say that if and , then
□
Proposition 2.
and
Proof.
The proof will be given after Lemma 5. □
Lemma 3.
Proof.
According to the definition of :
and using the fact that
we obtain
and the smallest satisfying the above relation is the least common multiple (LCM) of , which completes the proof. □
Lemma 4.
where
Proof.
We will use the following two results:
and
Furthermore, according to (12), we obtain:
which proves Lemma 4. □
Lemma 5.
Proof.
Let , then and where Thus
□
Proof of Proposition 2.
By applying Lemma 5 to the denominator of the expression in Lemma 4, with and we will obtain:
3. Properties of
In this section, we present some properties of the new Totient function .
- If are odd primes and k is any positive integer, then
- If , where p is an odd prime, then ;
- If , then .
- If then is an even number.
- If p and q are two odd primes, and k and l are any natural numbers, then
- If and q are three odd primes, and and s are any natural numbers, then
- Let be an increasing sequence of primes, then:
Proof.
- From the definition of the function , we can conclude the following:
- If are primes and k is any integer, then . Indeed,
- For all odd primes p, we have: Indeed,
- If , then .We note the followingTherefore, for any odd number m, we haveIf , we can factor more the termBy the Euler theorem, we haveBy induction, we can easily prove that for any odd integer m and for all integer the following statement is true:Thus,
- For , we have the following:
- , which is even for any odd prime p.
- , which is even for any odd prime p.
- (a)
- For some integer l, if divides , then .
- (b)
- is an even number.
(a) and (b) imply that is even.
- According to Lemma 3, we have:
- According to Lemma 3, we have:
- Obvious, it is enough to prove that .
- Obvious.
□
Corollary 1.
Proof.
From properties P6 and P7, the proof can be completed by induction.
As a conclusion, we can easily prove the following limit
by considering the subsequence , where are the first k-consecutive odd primes.
Again, since the primes are not bounded, we can conclude that
□
4. Computations of versus
In this section, we compare the magnitude of the Euler function versus the Carmichael function see Table 1 and Table 2.

Table 1.
Comparison between Carmichael and Euler functions for the product of two primes.

Table 2.
Comparison between Carmichael and Euler functions for the product of three primes.
Figure 3 and Figure 4 present, respectively, the ratio when n is a product of two primes, respectively, three primes.

Figure 3.
The Ratio between Carmichael and Euler functions for n less than 45,000.

Figure 4.
The Ratio between Carmichael and Euler functions for n less than 155,000.
5. Conclusions
In this paper, we presented how we built the modified Totient function of Carmichael . Important properties have been highlighted, particularly the given iterative scheme for calculating the function. Some preliminary numerical results comparing the Euler and the reduced totient functions aiming to quantify the reduction between them are given (see Table 1 and Table 2 and Figure 3, Figure 4 and Figure 5). Figure 6 and Figure 7 express the frequency of n for getting the value of ; in other words, determining the cardinal of the following set:
Furthermore, it may be worthwhile investigating more results in Corollary 1 by finding a better upper-bound.

Figure 5.
for all 20,000.

Figure 6.
The Cardinal of the Inverse of Carmichael function.

Figure 7.
The Cardinal of the Inverse of Euler function.
Author Contributions
Conceptualization, S.B.B. and A.H.; methodology, Y.H.; validation, S.B.B. and Y.H.; formal analysis, A.H.; investigation, S.B.B.; writing—original draft preparation, A.H.; writing—review and editing, S.B.B. and A.H. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Acknowledgments
The publication of this article was funded by the Qatar National Library.
Conflicts of Interest
The authors declare no conflict of interest.
References
- Carmichael, R.D. On composite numbers p which satisfy the Fermat congruence ap−1 ≡ 1mod(p). Am. Math. Mon. 1912, 19, 22–27. [Google Scholar]
- Erdos, P.; Pomerance, C.; Schmutz, E. Carmichael’s lambda function. Acta Arith. 1991, 58, 363–385. [Google Scholar] [CrossRef]
- Padberg, F. Elementare Zahlentheorie; Spektrum Akademischer Verlag: Heidelberg/Berlin, Germany, 1996. [Google Scholar]
- Riesel, H. Prime Numbers and Computer Methods for Factorization; Birkhäuser Boston: Basel, Switzerland; Berlin, Germany, 1994. [Google Scholar]
- Contini, S.; Croot, E.; Shparlinski, I.E. Complexity of Inversing the Euler Function. Math. Comput. 2006, 75, 983–996. [Google Scholar] [CrossRef]
- Ford, K.; Hu, Y.Y. Divisors of the Euler and Carmichael functions. Acta Arith. 2007, 133. [Google Scholar] [CrossRef][Green Version]
- Ge, Y. A Note on the Carmichael Function. Available online: https://www.math.sinica.edu.tw/www/file_upload/summer/crypt2017/data/2015/[20150707][carmichael].pdf (accessed on 1 May 2021).
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2021 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).