Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If $m$ and $n$ are two integers such that $\gcd(m,n)=1$, then we have $\phi (mn)=\phi (m) \phi(n)$, where $\phi$ is the Euler phi function defined by $\phi(n)=|\mathbb{Z_n^*}|$. Use the fact to show that if $n$ has the canonical factorization $\prod_{i=1}^{r}p_i^{e_i}$ for distinct primes $p_1,...,p_r$ and $e_i\geq1$, then $$\phi(n)=n\prod_{i=1}^{r}\left(1-\frac{1}{p_i}\right).$$ I have no idea what $\phi(n)=|\mathbb{Z}_n^*|$ is. Can anyone guide me on this question?

share|cite|improve this question
There is no question. will help you. – Martin Brandenburg Jan 29 '13 at 14:47
You need to use that the different prime powers are pairwise relatively prime, and then you need to find $\phi(p^k)$ for a fixed prime power $p^k$. After that some algebra to get the formula. – coffeemath Jan 29 '13 at 14:49
up vote 2 down vote accepted

For a positive integer $n$, $\phi(n)$ is the number of positive integers not exceeding $n$ that are coprime to it. Since the positive integers not exceeding a prime power $p^e$ that are not coprime to it are precisely the multiples of $p$ and there are exactly $p^{e-1}$ such multiples, $\phi(p^e)=p^e-p^{e-1}=(1-\frac{1}{p})p^e$. It follows that





share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.