To find the number of elements in \( \mathbb{Z}_{p^2} \) that have multiplicative inverses, we need to count the elements that are relatively prime to \( p^2 \). An element \( x \) in \( \mathbb{Z}_{p^2} \) has a multiplicative inverse if and only if \( \gcd(x,
Show more…