I regret to admit that this has been confusing me for much longer than I would like. I just can't wrap my head around some parts of this question and I'd like some guidance.
Let $G$ be a finite group, and let $S$ be a nonempty subset of $G$. Suppose $S$ is closed with respect to multiplication. Prove that $S$ is a subgroup of $G$. (HINT: It remains to prove that $S$ contains $e$ and is closed with respect to inverses. Let $S$ = {$a_1$ ... $a_n$}. If $a_i$ $∈$ $S$, consider the distinct elements $a_ia_1$, $a_ia_2$, $...$ $a_ia_n$
I think if I can understand one tiny segment then I can complete my proof. I know I need to show $e$ $∈$ $S$ and that $S$ is closed w.r.t inverses, but I can't get across a tiny step in proving $e$ $∈$ $S$.
The proof I'm trying to figure out goes something like:
Since $S$ is finite and closed under the group operation, then we have $a_1$ = $a_1a_k$ for some $a_k$ $∈$ $S$. Then from this we can find that $a_k$ = $e$.
My question is how we know that we have $a_1$ = $a_1a_k$ for some $a_k$ $∈$ $S$. I have no idea why this would be the case. I've also seen another post that used a map from $S$ $\rightarrow$ $S$ defined by left multiplication by $a_1$. The map is one-to-one and since $S$ is finite, it is injective as well. I understand this, but then the poster goes on to say that this somehow shows that we have $a_1s$ = $a_1$ for some $s$ $∈$ $S$. I have no idea why this would be the case either. If I can figure this out I think I can do the rest of the proof.
Thanks in advance.
For the neutral, Since $G$ is finite, the order of every of its element is finite if $a\in S$, $a^n=e$ for an integer $n$. For the inverse, $aa^{n-1}=e$ so $a^{n-1}$ is the inverse of $a$.