Is there a shortcut for finding the Euler function of the product of two prime squares?
$\phi(a^2*b^2)$=?, where a and b are prime.
I am able to find $\phi(a*b)=(a-1)(b-1)$, but don't really know where to start next. Both a and b are very large, and $\phi$ will be used for encryption methods.
Well if $a \neq b$ and both are prime then $gcd(a^2,b^2) = 1$ and we can therefore break the $\phi$ function: $\phi(a^2 \cdot b^2) = \phi(a^2) \cdot \phi(b^2) = a(a-1) \cdot b(b-1)$.
See Wiki for the identity I used.