The Euler totient function of a positive integer counts the number of integers that are relatively prime to ; that is,
where is the set of nonzero integers modulo .
Properties
Endomorphic
The Euler totient function is an endomorphism on multiplicative groups of integers. If represents such a group, then maps on itself and follows the homomorphism property.
Stated simply, for any positive integers and , where , then
Totient of Prime Numbers
If is a prime number, then
Proof. Since for all , we have .
quod erat demonstrandum
Totient of Prime Powers
If is a prime number and is an integer greater than , then
Proof. Since is prime, for any integer . Now holds only when is a multiple of . The multiples of that are less than or equal to are Failed to parse (syntax error): {\displaystyle S = \left\{ p, 2p, 3p, \ldots, p^{r − 1} \, p = p^r \right\}}
, of which there are Failed to parse (syntax error): {\displaystyle \left| S \right| = p^{r − 1}}
. Therefore the other Failed to parse (syntax error): {\displaystyle p^r − p^{r − 1}}
numbers are all relatively prime to .
quod erat demonstrandum
Totient of Integers in General
If represents the prime factorization of an integer , then using the formulae and properties above, we have
See Also