Let $G$ be a finite abelian group, then $G$ has a subgroup of order $n$ if and only if $n\mid G$.
Proof: by Lagrange if $H\leq G$ then $|H|$ divides $|G|$ so this proves one of the implications.
We prove the other implication by strong induction on the order of $G$, for primes this is just Cauchy, so we can take these like base cases. Now let $n$ be a proper divisor of $|G|$, take $p$ a prime in the factorization of $|G|$ (instead of $|G|$ is should be $n$, I had made a mistake when typing the first time), then by cauchy there is an element $x$ of $G$ of order $p$, since $G$ is abelian $\langle x\rangle$ is normal in $G$ so we can look at the quotient group $G/\langle x\rangle$, this group has order $\frac{|G|}{p}$, now take a prime $p_1$ in the factorization of $\frac{|G|}{n}$. By induction the quotient group has a subgroup $E$ of order $G/pp_1$ now look at the preimage of $E$ under the natural homomorphism from $G$ to $G/\langle x\rangle$, it is easy to see this is a subgroup of $G$, we call it $I$, consider the restriction of the natural projection to $I$, this is a surjective homomorphism from $I$ to $E$ with kernel $\langle x\rangle$ so by the first isomorphism theorem $I/x\cong E$ so $\frac{|I|}{|\langle x\rangle|}=|E|\implies |I|=\frac{|G|}{pp_1}{p}=\frac{|G|}{p_1}$ Notice $\frac{|G|}{p_1}$ is a multiple of $n$ since $p_1$ was in the fatorization of $\frac{|G|}{n}$. So by induction $I$ has a subgroup of order $n$ which is also a subgroup of $G$.