First, suppose $G_1, G_2$ are two finite groups and $|G_1|=|G_2|$.
If for each $n\in\mathbb N_+$, we have $\#\{g_1\in G_1,o(g_1)=n\}=\#\{g_2\in G_1,o(g_2)=n\}$.
My question:
$1$. Can we always have $G_1\cong G_2$?
$2$. What if $G_1$ and $G_2$ are infinite groups?
$3$. What can be used to characterize a group?
For example, multiplication table, generator and relation, its all subgroups(especially Sylow p-sungroups), etc while character table can't.
Thanks for your time and effort.