Euler's totient function

In number theory, the totient φ(n) of a positive integer n is defined to be the number of positive integers less than or equal to n and coprime to n. For example, φ(8) = 4 since the four numbers 1, 3, 5 and 7 are coprime to 8. The function φ so defined is the totient function. The totient is usually called the Euler totient or Euler's totient, after the Swiss mathematician Leonhard Euler, who studied it. The totient function is also called Euler's phi function or simply the phi function, since the letter Phi (φ) is so commonly used for it. The cototient of n defined as is n-φ(n).

The totient function is important mainly because it gives the size of the multiplicative group of integers modulo n -- more precisely, φ(n) is the order of the group of units of the ring <math>\mathbb{Z}/n\mathbb{Z}<math>. This fact, together with Lagrange's theorem, provides a proof for Euler's theorem.

Contents

Computing Euler's function

It follows from the definition that φ(1) = 1, and φ(n) is (p − 1)pk−1 when n is the kth power of a prime pk. Moreover, φ 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 is a bijection between AxB and C, via the Chinese remainder theorem.) The value of φ(n) can thus be computed using the fundamental theorem of arithmetic: if

n = p1k1 ... prkr

where the pj are distinct primes, then

φ(n) = (p1−1) p1k1−1 ... (pr−1) prkr−1.

This last formula is an Euler product and is often written as

<math>\varphi(n)=n\prod_{p|n}\left(1-\frac{1}{p}\right)<math>

with the product ranging only over the distinct primes pr.

Other properties

The number φ(n) is also equal to the number of generators of the cyclic group Cn (and therefore also to the degree of the cyclotomic polynomial Φn). Since every element of Cn generates a cyclic subgroup and the subgroups of Cn are of the form Cd where d divides n (written as d|n), we get

<math>\sum_{d\mid n}\varphi(d)=n<math>

where the sum extends over all positive divisors d of n.

We can now use the Möbius inversion formula to "invert" this sum and get another formula for φ(n):

<math>\varphi(n)=\sum_{d\mid n} d \mu(n/d) <math>

where <math>\mu<math> is the usual Möbius function defined on the positive integers.

If a is coprime to n, that is, gcd(a,n)=1 then

<math>a^{\varphi(n)}=1\mod n.<math>

Generating functions

A Dirichlet series involving φ(n) is

<math>\sum_{n=1}^{\infty} \frac{\varphi(n)}{n^s}=\frac{\zeta(s-1)}{\zeta(s)}.<math>

A Lambert series generating function is

<math>\sum_{n=1}^{\infty} \frac{\varphi(n) q^n}{1-q^n}= \frac{q}{(1-q)^2}<math>

which holds for |q|<1.

Growth of the function

The growth of φ(n) as a function of n is an interesting question, since the first impression from small n that φ(n) might be noticeably smaller than n is somewhat misleading. Asymptotically we have

n1−ε < φ(n) < n

for any given ε > 0 and n > N(ε). In fact if we consider

φ(n)/n

we can write that, from the formula above, as the product of factors

1 −p−1

taken over the prime numbers p dividing n. Therefore the values of n corresponding to particularly small values of the ratio are those n that are the product of an initial segment of the sequence of all primes. From the prime number theorem it can be shown that a constant ε in the formula above can therefore be replaced by

C log log n/log n.

This behavior also holds in an average sense:

<math>\frac{1}{n^2} \sum_{k=1}^n \varphi(k)= \frac{3}{\pi^2} + \mathcal{O}\left(\frac{\ln n }{n}\right)<math>

where the big O is the Landau symbol.

Another inequality is

<math>

\varphi (n) > \frac {n} {e^\gamma\; \log \log n + \frac {3} {\log \log n}} <math>

for n > 2, where γ is Euler's constant.

A pair of inequalities combining the φ function and the σ divisor function are:

<math>

\frac {6 n^2} {\pi^2} < \varphi(n) \sigma(n) < n^2 <math> for n > 1.

Another rough inequality is:

<math>

\varphi(n) \ge \sqrt{\frac {n} {2} } <math>

Some values of the function

<math>n<math> 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
<math>\phi(n)<math> 1 1 2 2 4 2 6 4 6 4 10 4 12 6 8 8 16 6 18 8
<math>n<math> 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
<math>\phi(n)<math> 12 10 22 8 20 12 18 12 28 8 30 16 20 16 24 12 36 18 24 16
<math>n<math> 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
<math>\phi(n)<math> 40 12 42 20 24 22 46 16 42 20 32 24 52 18 40 24 36 28 58 16
<math>n<math> 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
<math>\phi(n)<math> 60 30 36 32 48 20 66 32 44 24 70 24 72 36 40 36 60 24 78 32

See also

References

  • Milton Abramowitz and Irene A. Stegun, Handbook of Mathematical Functions, (1964) Dover Publications, New York. ISBN 486-61272-4 . See paragraph 24.3.2.

de:Eulersche φ-Funktion es:Función fi de Euler fr:Indicatrice d'Euler ko:오일러 파이 함수 it:Funzione phi di Eulero hu:Euler-függvény nl:Indicator van n ja:オイラーのφ関数 sl:Eulerjeva funkcija fi sv:Eulers phi-funktion zh:欧拉函数

Navigation

  • Art and Cultures
    • Art (https://academickids.com/encyclopedia/index.php/Art)
    • Architecture (https://academickids.com/encyclopedia/index.php/Architecture)
    • Cultures (https://www.academickids.com/encyclopedia/index.php/Cultures)
    • Music (https://www.academickids.com/encyclopedia/index.php/Music)
    • Musical Instruments (http://academickids.com/encyclopedia/index.php/List_of_musical_instruments)
  • Biographies (http://www.academickids.com/encyclopedia/index.php/Biographies)
  • Clipart (http://www.academickids.com/encyclopedia/index.php/Clipart)
  • Geography (http://www.academickids.com/encyclopedia/index.php/Geography)
    • Countries of the World (http://www.academickids.com/encyclopedia/index.php/Countries)
    • Maps (http://www.academickids.com/encyclopedia/index.php/Maps)
    • Flags (http://www.academickids.com/encyclopedia/index.php/Flags)
    • Continents (http://www.academickids.com/encyclopedia/index.php/Continents)
  • History (http://www.academickids.com/encyclopedia/index.php/History)
    • Ancient Civilizations (http://www.academickids.com/encyclopedia/index.php/Ancient_Civilizations)
    • Industrial Revolution (http://www.academickids.com/encyclopedia/index.php/Industrial_Revolution)
    • Middle Ages (http://www.academickids.com/encyclopedia/index.php/Middle_Ages)
    • Prehistory (http://www.academickids.com/encyclopedia/index.php/Prehistory)
    • Renaissance (http://www.academickids.com/encyclopedia/index.php/Renaissance)
    • Timelines (http://www.academickids.com/encyclopedia/index.php/Timelines)
    • United States (http://www.academickids.com/encyclopedia/index.php/United_States)
    • Wars (http://www.academickids.com/encyclopedia/index.php/Wars)
    • World History (http://www.academickids.com/encyclopedia/index.php/History_of_the_world)
  • Human Body (http://www.academickids.com/encyclopedia/index.php/Human_Body)
  • Mathematics (http://www.academickids.com/encyclopedia/index.php/Mathematics)
  • Reference (http://www.academickids.com/encyclopedia/index.php/Reference)
  • Science (http://www.academickids.com/encyclopedia/index.php/Science)
    • Animals (http://www.academickids.com/encyclopedia/index.php/Animals)
    • Aviation (http://www.academickids.com/encyclopedia/index.php/Aviation)
    • Dinosaurs (http://www.academickids.com/encyclopedia/index.php/Dinosaurs)
    • Earth (http://www.academickids.com/encyclopedia/index.php/Earth)
    • Inventions (http://www.academickids.com/encyclopedia/index.php/Inventions)
    • Physical Science (http://www.academickids.com/encyclopedia/index.php/Physical_Science)
    • Plants (http://www.academickids.com/encyclopedia/index.php/Plants)
    • Scientists (http://www.academickids.com/encyclopedia/index.php/Scientists)
  • Social Studies (http://www.academickids.com/encyclopedia/index.php/Social_Studies)
    • Anthropology (http://www.academickids.com/encyclopedia/index.php/Anthropology)
    • Economics (http://www.academickids.com/encyclopedia/index.php/Economics)
    • Government (http://www.academickids.com/encyclopedia/index.php/Government)
    • Religion (http://www.academickids.com/encyclopedia/index.php/Religion)
    • Holidays (http://www.academickids.com/encyclopedia/index.php/Holidays)
  • Space and Astronomy
    • Solar System (http://www.academickids.com/encyclopedia/index.php/Solar_System)
    • Planets (http://www.academickids.com/encyclopedia/index.php/Planets)
  • Sports (http://www.academickids.com/encyclopedia/index.php/Sports)
  • Timelines (http://www.academickids.com/encyclopedia/index.php/Timelines)
  • Weather (http://www.academickids.com/encyclopedia/index.php/Weather)
  • US States (http://www.academickids.com/encyclopedia/index.php/US_States)

Information

  • Home Page (http://academickids.com/encyclopedia/index.php)
  • Contact Us (http://www.academickids.com/encyclopedia/index.php/Contactus)

  • Clip Art (http://classroomclipart.com)
Toolbox
Personal tools