This is Exercise $7.$ from Section 7: Groups and Homomorphisms, Chapter 1: Foundation, textbook Analysis I by Herbert Amann and Joachim Escher.
Exercise $7$: Let $(G,\odot)$ be a finite group with identity element $e$. Show that for each $g \in G$, there is $k \in \Bbb N^+$ such that $g^k := \underbrace{g \odot \cdots \odot g}_{k \text{ times}} = e$.
My attempt:
Assume the contrary that $g^k \neq e$ for all $k > 0$. Then $g^n \neq g^{n+p}$ for all $p>0$. If not, $g^n = g^{n+p}$ for some $p>0$ and thus $(g^{-1})^n \odot g^n = (g^{-1})^n \odot g^{n+p}$. It follows that $e = g^p$, which is a contradiction. So the set $\{g^k \mid k \in \Bbb N\}$ is infinite. This contradicts the fact that $G$ is finite.
At the end of this exercise, the authors give a hint Use Exercise $1.$ where
Exercise $1$: Let $N$ be a subgroup of a finite group $(G,\odot)$. Show that $|G| = |N| \cdot |G/N|$ where $G/N$ is the set of left cosets of $G$ modulo $N$.
My questions:
Does my attempt look fine or contain gaps/flaws?
How to utilize Exercise $1$ to do Exercise $7$ as suggested by the authors?
Thank you for your help!