Let $G_1$ and $G_2$ be cyclic finite groups. Suppose I wanted to find the number of elements in $G_1 \times G_2$ of order k. How would I do that?
I've tried using the fact that if $g_1 \in G_1$ and $g_2 \in G_2$, then $|(g_1, g_2)| = \operatorname{lcm}(|g_1|, |g_2|)$, but no such luck.
I appreciate any help given.
I assume $k$ is a divisor of $|G_1 \times G_2|$. There are two cases
Since $G_1 \times G_2$ is cyclic, it has a unique subgroup of order $k$, call it as $\langle a \rangle$. Then every element of order $k$ also generates the subgroup $\langle a \rangle$ and note that $a^m$ generates $\langle a \rangle$ iff $\gcd(m,k)=1$. The number of such element is exactlty $\phi(k)$ where $\phi$ is Euler totient function
Conclusion: In a finite cyclic group, the number of elements of order $k$ is exactly $\phi(k)$
In this case, there is no formula for the number of elements of each order. We must find explicitly by using your $\text{lcm}$ formula, but we can still say something, namely, the number of elements of order $k$ is a multiple of $\phi(k)$ (proof?)