Let $H = \{ \sigma\in S_5\mid\sigma(5)=5\}$. Let $K$ be a subgroup of $S_5$. Prove that $HK=S_5$ iff 5 divides $|K|$.
Attempt: I found $|H|=24$. I know that $|HK|=\frac{|H||K|}{|H \cap K|}$. Suppose $HK = S_5$. Then $|HK|=120$, but I don't know that $H \cap K=\{e\}$ or not. Also how do I show the converse?
Any help is appreciated.
If $5\mid |K|$, then $|K|=5m$. We have $|HK||H\cap K|=120m$. But $|H\cap K|\mid 24$ and $|H\cap K|\mid 5m$, so $$|H\cap K|\mid \gcd(24,5m)=\gcd(24,m)\mid m.$$ Then $|HK|$ is a multiple of $120$ and since $HK\subseteq S_5$ we get $HK=S_5$.