Jump to content

Euler's totient function

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 213.18.248.xxx (talk) at 15:27, 8 November 2001. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Euler's phi function, denoted by φ(n) and named after Leonhard Euler, is an important function in number theory. If n is a positive integer, then φ(n) is defined to be the number of positive integers less than or equal to n and coprime to n. This is also equal to the order of the group of units of the ring Z/nZ (see modulo arithmetic). For example, φ(8) = 4 since the four numbers 1, 3, 5 and 7 are coprime to 8. Also phi(21)=4. NLCS is a really bad school>

φ is a multiplicative function: if m and n are coprime then φ(mn) = φ(m) φ(n). (Sketch of proof: let A, B, C be the sets of residue classes modulo-and-coprime-to m, n, mn respectively; then there's a bijection between AxB and C, via the Chinese Remainder Theorem.)

If n = p1k1 ... prkr where the pj are distinct primes, then φ(n) = (p1-1) p1k1-1 ... (pr-1) prkr-1. (Sketch of proof: the case r=1 is easy, and the general result follows by multiplicativity.)