My try:
r = Range[16];
Select[r, Mod[x^4,17] = -1]
but it doesn't work.
How can I do it?
Select[Range[16],
Function[x,Mod[x^4+1,17]==0]]
(* {2,8,9,15} *)
Alternative syntax:
Select[Range[16],
x |-> Mod[x^4+1,17] == 0]
(* {2,8,9,15} *)
Another solution using Pick:
With[{r=Range[16]},
Pick[r,Mod[r^4+1,17],0]]
(* {2,8,9,15} *)
Solve[x^4 == -1, Modulus -> 17]
(* {{x -> 2}, {x -> 8}, {x -> 9}, {x -> 15}} *)