OFFSET
1,1
EXAMPLE
Since 6 is not a perfect square and there are no solutions to x^2 = 6 mod 14 in integers, 6 is in the sequence.
Although 7 is not a perfect square either, there are solutions to x^2 = 7 mod 14, namely odd multiples of 7. Thus 7 is not in the sequence.
MATHEMATICA
Complement[Range[0, 13], PowerMod[Range[14], 2, 14]] (* Alonso del Arte, Dec 14 2019 *)
PROG
(Scala) (0 to 13).diff((1 to 14).map(n => (n * n) % 14)) // Alonso del Arte, Dec 14 2019
CROSSREFS
KEYWORD
nonn,fini,full
AUTHOR
EXTENSIONS
Incorrect term 7 removed by Alonso del Arte, Dec 14 2019
STATUS
approved