Lets say we have a cyclic group $\Bbb Z_{13}$ and we have found the following subgroup $\langle 3\rangle$.
Now we calculate the following:
\begin{align}3^1 \pmod{13} &= 3,\\ 3^2 \pmod{13}&= 9 \pmod{13} \equiv -4 \pmod{13} = -4,\\ 3^3 \pmod{13}& = 3\times(-4) \pmod{13} = -12 \pmod{13} = 1.\end{align}
As you can see the inverse of $-4$ is $9$, but my question is the final set of elements going to be like this:
$\langle 3\rangle = \{3,-4,1\}$ or like this: $\langle 3\rangle = \{3,9,1\}$.
Any help would be grateful.
The group ${\Bbb Z}_{13}^*$ is a subset of the ring ${\Bbb Z}_{13}=\{0,1,\ldots,12\}$ whose elements are the residue classes modulo 13. Here $-4\equiv 9\mod 13$ and so $-4$ and $9$ represent the same element.