I want to check if my solution to this problem from my abstract algebra course is correct. The problem says:
Find which of the following groups are isomorphic: $$\mathbb{Z}_8 \ \ , \ \ \mathbb{Z}_4\oplus\mathbb{Z}_2 \ \ , \ \ \mathbb{Z}_2^3 \ \ , \ \ \mathbb{Z}_{24}^\times \ \ , \ \ \mathbb{Z}_{30}^\times \ \ , \ \ D_4.$$
What I did is calculate the order of each element from each group. Doing that I obtained:
- $\mathbb{Z}_8$ : 4 elements of order $8$, 2 elements of order $4$, 1 element of order $2$.
- $\mathbb{Z}_4\oplus\mathbb{Z}_2$, $\ \mathbb{Z}_{30}^\times$ : 4 elements of order $4$, 3 elements of order $2$.
- $\mathbb{Z}_2^3$, $\ \mathbb{Z}_{24}^\times$ : 7 elements of order $2$.
- $D_4$ : 2 elements of order $4$, 5 elements of order $2$.
I don't know if this condition is sufficient to ensure that the groups that share the "number of elements of each order" are isomorphic. Am I missing something? Any help will be appreciated, thanks in advance.