OFFSET
1,1
EXAMPLE
x^2 = 7 mod 41 has no solutions, so 7 is in the sequence.
x^2 = 8 mod 41 has the solutions x = 7 and x = 34. Hence 8 is not in the sequence.
MATHEMATICA
Complement[Range[40], PowerMod[Range[41], 2, 41]] (* Alonso del Arte, Jan 12 2017 *)
PROG
(Scala) (0 to 40).diff((1 to 41).map(n => n * n % 41)) // Alonso del Arte, May 01 2020
CROSSREFS
KEYWORD
nonn,fini,full,easy
AUTHOR
STATUS
approved