I'm solving the following problem:
If $f:S_n\rightarrow S_n$ is a group homomorphism, prove that $f(A_n)\subseteq A_n.$ (Here, $S_n$ is a symmetric group of degree $n$, and $A_n$ is an alternating group of degree $n.$)
For $n=2,$ it is trivial. Let $n\geq3.$ First we show that for any $3$-cycle $(abc)\in S_n,$ its image $f((abc))$ is even. Suppose, on the contrary, that $f((abc))$ is odd. Since $(abc)^3=(1),$ $f((abc))^3=f((abc)^3)=f((1))=(1)$. (Note that $f$ is a homomorphism). Thus, $f((abc))^3=(1).$ However, $(1)$ is $even$ and since we assumed that $f((abc))$ is odd, $f((abc))^3$ is odd. This is a contradiction! Thus $f((abc))$ is even. As every element $\sigma$ of $A_n$ (that is, all even permutations) is a product of $3$-cycles (Link), we may write $\sigma = (a_1b_1c_1)\cdots(a_nb_nc_n).$ Then, $f(\sigma)=f((a_1b_1c_1)\cdots(a_nb_nc_n))=f((a_1b_1c_1))\cdots f((a_nb_nc_n)).$ As each $f((a_1b_1c_1)),\dots,f((a_nb_nc_n))$ is even, $f(\sigma)$ is also even. It follows that $f(A_n)\subseteq A_n$!
Is my argument correct?