I try to show that Euler's totient function is a multiplicative function. $$\varphi(nm)=\varphi(n)*\varphi(m)$$ with gcd(m,n)=1,But I don't understand why this happens
$$n = \prod_{k=1}^{z}p_{k}^{e_{k}}$$ $$\iff \varphi(n) = n \prod_{k=1}^{z}(1-\frac{1}{p_{k}})$$
especially, why does this happen? $\varphi(n) = n \prod_{k=1}^{z}(1-\frac{1}{p_{k}})$
Hint: Start by thinking about $\varphi$ of a prime power. Can you show that $\varphi(p^e)=p^{e-1}(p-1)$ ?
Now use the fact that $\varphi$ is multiplicative.