Euler's totient function

Euler's totient function counts the totatives of a given integer n, i.e. the positive integers up to n that are coprime to n.

It is specified φ(n), giving its alternate name, "Euler's phi function"

In other words, it is the number of integers k in the range 1kn for which the greatest common divisor gcd(n,k) is equal to 1.

n φ(n) Totatives
1 1 1
2 1 1
3 2 1, 2
4 2 1, 3
5 4 1, 2, 3, 4
6 2 1, 5
7 6 1, 2, 3, 4, 5, 6
8 4 1, 3, 5, 7
9 6 1, 2, 4, 5, 7, 8
10 4 1, 3, 7, 9
11 10 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
12 4 1, 5, 7, 11

Euler's theorem
Euler's totient function is multiplicative for coprime values.


See also

Powered by Forestry.md