Please Login to access more options.


Exercise (The Order Of $U(p)$ When $p$ Is Prime)

If $p$ is a prime, then what is the order of $U(p)$? In other words, what is the Euler $\varphi$ function at $p$, namely what is $\varphi(p)$.

Click to see a solution.

If $p$ is prime, then every positive integer less than $p$ is relatively prime to $p$. This means that $U(p)=\{1,2,3,4,\ldots, p-1\}$, which means $|U(p)|=p-1$. The Euler $\varphi$ function is just the number of elements in $U(n)$, so we have $\varphi(p)=p-1$ for primes $p$.

If $n$ is not prime, then the set $U(n)$ does not contain every positive integer less than $n$, which makes it harder to work with $U(n)$ when $n$ is not prime.