Given $G=\langle a\rangle$, $|G|=n$ and $d\mid n$, show $G$ has a unique subgroup of order $d$.
Proof:
(Existence) : $|\langle a\rangle|=|a|=n$ and $ |a^\frac{n}{d}|=d$. Then, $H_d=\langle a^\frac{n}{d}\rangle$ is a subgroup of $G$ of order $d$.
(Uniqueness) :
Suppose, $H\le G$ and $|H|=d$.
Claim: $H=H_d$.
It is enough to prove one-sided set inclusion $H\subseteq H_d$ because $H\le H_d$ and $|H|=|H_d|$ implies $H=H_d$.
Choose $b\in H$ . Then $|H|=d \implies b^d=e$ and $b\in H \implies b \in G$.
Hence $b=a^k$ for some $k\in \mathbb{Z}$. Also $e=b^d =(a^k)^d =a^{kd} $ and $|a|=n $ implies $n|kd$.
Hence $kd=nk'$ for some $k'\in \mathbb{Z}$ and $k=(\frac{n}{d})k'$
Hence $b=a^k =a^{{(\frac{n}{d})}k'}$ for some $k' \in \mathbb{Z}$ implies $b\in H_d$. Hence $H\subseteq H_d$ and then $H=H_d$.
Note: $|G|$ : order of the group $G$.
Is the proof correct ? Is there any mistake?
Here is my proof:
Existence:
Let $k=\frac{n}{d}\Longleftrightarrow k\cdot d=n$, so, $H=\langle a^k \rangle=\{e,a^k,a^{2k},...,a^{(d-1)k} \}$ and $|H|=d$,
Uniqueness:
Suppose $H_2$ is another subgroup of $G$ with order $d$, $|H_2|=d$.
Let $H_2=\langle a^q\rangle$, where $0\le q\le n-1$,
Case $(1)$:
If the generator $a^q\in H$,
then for any $x\in H_2, ~x=(a^q)^m$ for some integer $m$.
Since $a^q\in H$, $\Rightarrow (a^q)^m\in H, \Rightarrow x\in H\Rightarrow H_2\subseteq H$.
We also have $|H|=|H_2|=d$, therefore, $H_2=H$ .
Case $(2)$:
If the generator $a^q\notin H$, which means $k\nmid q~~~~~(*)$
Since $\frac{n}{\gcd(k,n)}=\frac{n}{k}=|H|=d=|H_2|=\frac{n}{\gcd(q,n)}$,
$\Rightarrow \gcd(k,n)=k=\gcd(q,n)\Rightarrow k\mid q~$, which contradicts with $(*)$.
Therefore, Case $(2)$ can never happen.
Proof is completed.