For integers $n\geq5$ and $n\neq6$, and $m\geq2$, by an extension $G$ of alternating group $A_n$ by cyclic group $\mathbb{Z}_m$, I mean the following short exact sequence:
$1 \to A_n \to G \to \mathbb{Z}_m \to 1$.
Question: How many $G$ are there up to isomorphism?
Notes:
(1) For $m=2$, it follows from Derek Holt's answer that $G \cong S_n$ or $ A_n\times\mathbb{Z}_2$.
(2) For $m>2$, note that, there are two homomorphisms $\phi:\mathbb{Z}_m \to \mathbb{Z}_2$, namely, $\bar{1} \mapsto \bar{0}$ or $\bar{1} \mapsto \bar{1}$ if $m$ is even, and one homomorphism, namely, $\bar{1} \mapsto \bar{0}$ if $m$ is odd. Since $\mathrm{Out}(A_n)\cong \mathbb{Z}_2$ for $n\neq6$ and $Z(A_n)=1$, therefore every $\phi:\mathbb{Z}_m \to \mathrm{Out}(A_n)$ determine an unique extension and vice versa. For details, see another answers this and this.
From the above answers, can we conclude the following?
Case 1: $m$ is odd. $G \cong A_n\times\mathbb{Z}_m$.
Case 2: $m$ is even. $G \cong A_n\times\mathbb{Z}_m$ or $A_n \rtimes _{\bar{1} \mapsto \bar{1}}\mathbb{Z}_m$.
In particular, for the case $n=5$ and $m=3$, consider the homomorphism $\phi:\mathbb{Z_3}\to \mathrm{Aut}(A_5)$ determined by $\bar{1}\to (1~2~3)$. I'm not able to show that $ A_5\rtimes_{\phi}\mathbb{Z}_3 \cong A_5\times\mathbb{Z}_3$, which would otherwise violate the above conclusion.