How to find all Integers $m$ satisfying $m\equiv n^2 \mod 19$ for some $n\in Z$ ?
For each non-zero element of $Z_{19}$, find its order (in the multiplicative group of this ring).
I don't know how to do both. For the first one, taking all $a$ from $0$ to $19$ we can check some $x$. I got all values of $a$, but don't know what is the general procedure to be followed.
I guess the answers of $a$ should be $a=\left\{0,1,4,5,6,7,9,11,16,17\right\}.$
The multiplicative group of a finite field is cyclic.
The order of $x\in\Bbb Z_{19}^*$ divides $18$ (the order of the group).
Now, there are $\varphi (18)=6$ generators.
By process of elimination, there are $\varphi(3)=2$ elements of order $3$. They are $\{7,12\}$.
Next, there are $\varphi (6)=2$ of order $6$. They are $\{8,11\}$.
There are $\varphi (9)=6$ elements of order $9$. We can take them from the list in part $a)$, since a square can't generate. Those are: $\{4,9,16,6,17,5\}$.
Now we can do the $6$ generators: $\{2,3,10,13,14,15\}$.
The only one left is $\{18\}$, which has order $2$.