OFFSET

1,1

EXAMPLE

x^2 = 27 mod 72 has no solutions, so 27 is in the sequence.

x^2 = 28 mod 72 has the following solutions: x = 10, x = 26, x = 46, x = 62. So 28 is not in the sequence.

MATHEMATICA

Complement[Range[71], PowerMod[Range[71], 2, 72]] (* Alonso del Arte, Jan 14 2017 *)

PROG

(Scala) (0 to 71).diff((1 to 72).map(n => (n * n) % 72)) // Alonso del Arte, Dec 24 2019

CROSSREFS

KEYWORD

nonn,fini,full,easy

AUTHOR

STATUS

approved