I'd like to calculate the orders of the following automorphism groups where $p$ and $q$ are distinct primes:
(1) $\mathrm {Aut}(\mathbb Z_p \times \mathbb Z_p \times \mathbb Z_p \times \mathbb Z_p)$
(2) $\mathrm {Aut}(\mathbb Z_p \times \mathbb Z_p \times \mathbb Z_q)$
I figured out that if $m$ and $n$ are relatively prime, then $\mathrm {Aut}(\mathbb Z_m) \times \mathrm {Aut}(\mathbb Z_n)$ is isomorphic to $\mathrm {Aut}(\mathbb Z_m \times \mathbb Z_n )$, but I could'nt apply this one in this case.
I already solved the case (1). For (2), is $\mathrm {Aut}(\mathbb Z_p \times \mathbb Z_p \times \mathbb Z_q)$ isomorphic to $\mathrm {Aut}(\mathbb Z_p \times \mathbb Z_p ) \times \mathrm {Aut}( \mathbb Z_q)$? If not, what is a group isomorphic to $\mathrm {Aut}(\mathbb Z_p \times \mathbb Z_p \times \mathbb Z_q)$? And how can I compute the order?