Abelian Group Factored by Prime

Lemma
Let $G$ be a finite abelian group of order $m p^n$ where $p$ is a prime that does not divide $m$.

Then $G = H \times K$ where $H = \left\{{x \in G : x^{p^n} = e}\right\}$ and $K = \left\{{x \in G : x^m = e}\right\}$.

Furthermore, we have $\left|{H}\right| = p^n$.

Proof
First note that from Subgroup of Elements whose Order Divides Integer, both $H$ and $K$ are subgroups of $G$.

Because $G$ is abelian, $H$ and $K$ are normal by All Subgroups of Abelian Group are Normal.

In order to prove $G = H \times K$, by the Internal Direct Product Theorem it suffices to show that $G = H K$ and $H \cap K = \left\{{e}\right\}$.

Since we have $\gcd \left\{{m, p^n}\right\} = 1$, there are integers $s$ and $t$ such that $1 = s m + t p^n$ by Bézout's Lemma.

Let $s$ and $t$ be two such integers.

So it follows that $\forall x \in G: x = x^{s m + t p^n} = x^{sm}x^{tp^n}$.

Now we have $x^{\left|{G}\right|} = e$ from Element to the Power of Group Order.

Therefore, $(x^{s m})^{p^n} = (x^{p^n m})^s = e^s = e$ and $(x^{t p^n})^m = (x^{p^n m})^t = e^t = e$.

By definition, $x^{s m} \in H$ and $x^{t p^n}\in K$.

We conclude that $G = H K$.

Now suppose that some $x \in H \cap K$.

Then $x^{p^n} = e = x^m$, so from Element to the Power of Multiple of Order $\left|{x}\right|$ divides both $p^n$ and $m$.

Since $p$ does not divide $m$, it follows that $\left|{x}\right| = 1$.

Therefore, by Identity Only Group Element Order 1, $x = e$, thus $H \cap K = \left\{e\right\}$.

Suppose that $p \backslash \left|{K}\right|$.

From Cauchy's Group Theorem, this implies that there is some element (call it $k$) of $K$ with order $p$.

But we also have $k^m = e$ from the definition of $K$, so by Element to the Power of Multiple of Order we must have $p \backslash m$, a contradiction.

We conclude that $p$ does not divide $\left|{K}\right|$, and it follows that $p^n \backslash \left|{H}\right|$.

Now suppose a prime $q$ (with $q \ne p$) divides $H$.

Again from Cauchy's Group Theorem, this implies that there is some element $h$ of $H$ with order $q$.

But since $h^{p^n} = e$ from the definition of $H$, Element to the Power of Multiple of Order gives us $q \backslash p^n$, a contradiction.

It follows that $q$ does not divide $\left|{H}\right|$.

We conclude $\left|{H}\right| = p^n$, as desired.