More generally, let us try to enumerate the number of homomorphisms $f:S_m\to \mathbb Z_n$ for $m\geq 5$.
As noted, the kernel of a homomorphism must be a normal subgroup of the domain, there are few possibilities for $\ker(f)$:
- $\{\text{id}\}$: It can be ruled out because $f$ cannot be one-one; otherwise it would mean that a non-abelian group is embedded in an abelian group (this makes no sense).
- $ S_m$ : That's just the trivial homomorphism.
- $A_m$: By first isomorphism theorem, it would mean that $\mathbb Z_2 \cong S_m/A_m\cong f(S_m) \leq \mathbb Z_n$. In other words, a cyclic group of order two is embedded inside $\mathbb Z_n$. You need to count the number of subgroups of order $2$ in $\mathbb Z_n$. If $n$ is even then there is exactly one such subgroup. Otherwise, there is none.
We have enumerated all possible homomorphisms and here's the count:
If $n$ is odd then there's only the trivial one.
If $n$ is even then there are two of them. One of them is trivial. And the other one maps a permutation to $n/2$ or $0$ depending on its parity (odd or even). $\begin{cases}\text{even permutation}\mapsto 0\\ \text{odd permutation} \mapsto\frac n2\end{cases}\tag*{}$
Please comment if I have undercounted anywhere.
Now let's enumerate the homomorphisms $f:S_4\to \mathbb Z_n$. Our strategy is still the same: Let's find the normal subgroups of $S_4$. Since it's a small group, we can work it by considering conjugacy classes of each cycle type like it's done here.
The possibilities for $\ker(f)$ are:
- $V_4=\langle (12)(34), (13)(24) \rangle$ (a Klein-four group). By first isomorphism theorem, $S_4/V_4\cong f(S_4)\leq \mathbb Z_n$. Now check that $S_4/V_4\cong S_3$. This is not hard. Hint: Recall that there are only two groups of order $6$ and $(12)V_4$ and $(23)V_4$ don't commute.
Again, a non-abelian group embedded in an abelian group makes no sense.
- The other three: trivial, whole group and $A_4$ (which we have already done).
The conclusion remains same for homomorphisms $f:S_4\to \mathbb Z_n$. But this wasn't a fool's errand, you might need this when you try to find homomorphisms from $S_4$ to a non-abelian group.
Now let's do $f:S_3\to \mathbb Z_n$.
$S_3$ doesn't have any extra normal subgroup besides the three we have dealt with. So our previous conclusions hold yet again!
For $f:S_2\to \mathbb Z_n$, you can just list them out:
For even $n$, we have the trivial one and this:
$\begin{cases} (12)\mapsto n/2\\ \text{id}\mapsto 0 \end{cases}$
And for $n$ odd, we have only the trivial one.
Thus, our conclusion still holds!
Conclusion
For $m\geq 2$, there are two homomorphisms $f:S_m\to \mathbb Z_n$ if $n$ is even.
Otherwise, there is only one. $\blacksquare$