Euler totient function

From Notes
Jump to navigation Jump to search

The Euler totient function ϕ of a positive integer n counts the number of integers 0<k<n that are relatively prime to n; that is,

ϕ(n)=|{kn*gcd(k,n)=1}|

where n* is the set of nonzero integers modulo n.


Properties

Endomorphic

The Euler totient function is an endomorphism on multiplicative groups of integers. If G represents such a group, then ϕ maps G on itself and follows the homomorphism property.

Stated simply, for any positive integers m and n, where gcd(m,n)=1, then

ϕ(mn)=ϕ(m)ϕ(n)


Totient of Prime Numbers

If p is a prime number, then

ϕ(p)=p1

Proof. Since

gcd(p,m)=1

for all

mp*

, we have

|p*|=p1

.

quod erat demonstrandum


Totient of Prime Powers

If p is a prime number and r is an integer greater than 1, then

ϕ(pk)=prpr1=pr1(p1)


Proof. Since

p

is prime,

gcd(pr,m){1,p,p2,,pr}

for any integer

m

. Now

gcd(pr,m)1

holds only when

m

is a multiple of

p

. The multiples of

p

that are less than or equal to

pr

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

pr

.

quod erat demonstrandum


Totient of Integers in General

If {p1r1,p2r2,,pkrk} represents the prime factorization of an integer n, then using the formulae and properties above, we have

ϕ(n)=i=1kpiri1(pi1)


See Also