Definition (Euler totient function)

The Euler totient function is defined as $$ \phi(n) = \#\sb{x\in\Z_n}{\mrm{gcd}(x,n) = 1}. $$