Problem statement:
Let $p_1$ and $p_2$ be two distinct prime numbers where $p_2 < p_1$. I want to prove that if $g \in \mathbb{Z}_{p_1}^{*}$ has the property that $g^{p_2} \equiv 1 \mod p_1$, then the set $S = \{g^{i} \bmod p_1 \mid 0 \leq i < p_2\}$ is closed under multiplication (i.e., $S$ is a subgroup of $\mathbb{Z}_{p_1}^{*}$).
Solution attempt:
By Lagrange's theorem we know that the order of any proper subgroup $H$ must divide the order of the finite group $G$. We also know that the order of $g$ is defined as the smallest positive integer $d$ such that $$ g^d \equiv 1 \mod p. $$ So, my idea is that we need to show that the order of $S$ divides the order of $\mathbb{Z}_{p_1}^* = \phi(p_1) = p_1 - 1$.
For the elements $g \in \mathbb{Z}_{p_1}^*$ that have the property that $g^{p_2} \equiv 1 \mod p_1$ we know by the definition of the order of $g$ that the order for the cyclic subgroup $S$ generated by $g$ must be $p_2$.
Here is where I get confused...
Question(s):
- We know that $|S| = p_2$. For $S$ to be a proper subgroup of $\mathbb{Z}_{p_1}^*$, $p_2$ must divide the order of the group which is $p_1 - 1$. It is clear that this is not always the case. I've gone wrong and I don't know how to proceed.