The first thousand values of the function
 
  
The Euler Phi function (different spelling: Euler's φ function , even Euler function called) is a number theoretic function . For every positive natural number  , it indicates how many coprime natural numbers there are that are not greater than (also known as the totient of ):

 


Denotes the greatest common factor of and

The Phi function is named after Leonhard Euler .
Examples
- As a special case of the empty product (neither prime nor composite number), the number 1 is also coprime to itself, so is
 
- The number 6 is relatively prime to exactly two of the six numbers from 1 to 6 (namely to 1 and 5), so is 
 
- The number 13 is prime to each of the twelve numbers from 1 to 12 (but of course not to 13), so is
 
The first 99 values of the phi function are:
 
 | 
+0 | 
+1 | 
+2 | 
+3 | 
+4 | 
+5 | 
+6 | 
+7 | 
+8 | 
+9
 | 
| 
00+
 | 
  | 
01 | 
01 | 
02 | 
02 | 
04th | 
02 | 
06th | 
04th | 
06th
 | 
| 10+
 | 
04th | 
10 | 
04th | 
12 | 
06th | 
08th | 
08th | 
16 | 
06th | 
18th
 | 
| 20+
 | 
08th | 
12 | 
10 | 
22nd | 
08th | 
20th | 
12 | 
18th | 
12 | 
28
 | 
| 30+
 | 
08th | 
30th | 
16 | 
20th | 
16 | 
24 | 
12 | 
36 | 
18th | 
24
 | 
| 40+
 | 
16 | 
40 | 
12 | 
42 | 
20th | 
24 | 
22nd | 
46 | 
16 | 
42
 | 
| 50+
 | 
20th | 
32 | 
24 | 
52 | 
18th | 
40 | 
24 | 
36 | 
28 | 
58
 | 
| 60+
 | 
16 | 
60 | 
30th | 
36 | 
32 | 
48 | 
20th | 
66 | 
32 | 
44
 | 
| 70+
 | 
24 | 
70 | 
24 | 
72 | 
36 | 
40 | 
36 | 
60 | 
24 | 
78
 | 
| 80+
 | 
32 | 
54 | 
40 | 
82 | 
24 | 
64 | 
42 | 
56 | 
40 | 
88
 | 
| 90+
 | 
24 | 
72 | 
44 | 
60 | 
46 | 
72 | 
32 | 
96 | 
42 | 
60
 | 
properties
Multiplicative function
The Phi function is a multiplicative number theoretic function , so that for coprime numbers and

applies. An example of this:

properties
The function assigns the number of units in the remainder class ring to each , i.e. the order of the prime remainder class group .


 
Because if there is a unit, there is a with which is equivalent to the existence of an integer with . According to Bézout's lemma , this is equivalent to the coprime numbers of and







is always an even number.

If the number of elements in the picture is not greater than , then applies
 

The image of the Phi function therefore has the natural density 0.
Generating function
The Dirichlet-generating function of the Phi function is related to the Riemann zeta function  :


calculation
Prime numbers
Since a prime number is  only divisible by 1 and itself , it is relatively prime to the numbers 1 to . In addition, because it is greater than 1, it is not coprime to itself. It is therefore true



Power of prime numbers
A power  with a prime number as a base and the exponent has only one prime factor. Therefore, it only has multiples of one in common different from 1. In the range from 1 to these are the numbers







- 
. 
These are numbers that are not too prime . The following therefore applies to Euler's function



- 
. 
Example:
- 
. 
General calculation formula
The value of Euler's phi function can be determined for each from its canonical prime factorization

to calculate:
- 
, 
where the products are formed over all prime numbers that are divisors of . This formula follows directly from the multiplicativity of the Phi function and the formula for prime powers.


Example:

or
- 
. 
Average order of magnitude
With the Riemann  zeta function  , the Landau symbol and the following applies:
 


Because of these two sums are asymptotically equal:


One also says:
- The average magnitude of is .


 
Fourier transform
Euler's phi function is the discrete Fourier transformation of the GCD , evaluated at point 1:
![{\ displaystyle {\ begin {aligned} {\ mathcal {F}} \ left \ {\ mathbf {x} \ right \} [m] & = \ sum \ limits _ {k = 1} ^ {n} x_ { k} \ cdot e ^ {{- 2 \ pi i} {\ frac {mk} {n}}}, \ quad \ mathbf {x_ {k}} = \ left \ {\ operatorname {ggT} (k, n ) \ right \} \ quad {\ text {for}} \, k \ in \ left \ {1, \ dotsc, n \ right \} \\\ varphi (n) & = {\ mathcal {F}} \ left \ {\ mathbf {x} \ right \} [1] = \ sum \ limits _ {k = 1} ^ {n} \ operatorname {ggT} (k, n) e ^ {{- 2 \ pi i} {\ frac {k} {n}}} \ end {aligned}}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/2772e5638dc7bbaa5a391e21634526953583a799)
The real part of this gives the equation

More relationships
- It even applies to odd ones .



 
- The following applies to:

 

- The following applies to all :

 

- 
Example: For is the set of positive divisors of by




 
- given. Addition of the associated equations


 
- results in:

 
meaning
The phi function finds an important application in the Fermat-Euler theorem :
If two are natural numbers and are prime, is a factor of



Put a little differently:

A special case (for prime numbers ) of this theorem is the little Fermatsche theorem :


 

 
The Fermat-Euler theorem is used, among other things, to generate keys for the RSA method in cryptography .
See also
Web links
Individual evidence
- 
^  Wolfgang Schramm: The Fourier transform of functions of the greatest common divisor .   In: University of West Georgia , Charles University Prague (ed.):   Integers Electronic Journal of Combinatorial Number Theory . 8, 2008, p. A50. Retrieved October 24, 2015.
 
- 
↑  Buchmann: Introduction to Cryptography. Theorem 3.8.4.