Euler totient function
This article defines an arithmetic function or number-theoretic function: a function from the natural numbers to a ring (usually, the ring of integers, rational numbers, real numbers, or complex numbers).
View a complete list of arithmetic functions
Definition
Let be a natural number. The Euler phi-function or Euler totient function of , denoted , is defined as following:
- It is the order of the multiplicative group modulo , i.e., the multiplicative group of the ring of integers modulo .
- It is the number of elements in that are relatively prime to .
In terms of prime factorization
Suppose we have the following prime factorization of :
.
Then, we have:
.
In other words:
.
Behavior
Upper bound
The largest values of are taken when is prime. for a prime .
Thus:
.
Lower bound
For any , there exists such that:
.
With the prime number theorem, we can find a constant such that:
Failed to parse (unknown function "\logn"): {\displaystyle \varphi(n) \ge n^{1 - (C\log\log n/\logn)}} .