OFFSET
1,1
EXAMPLE
Since 11 is not a perfect square and there are no solutions to x^2 = 11 mod 46, 11 is in the sequence.
Although 12 is not a perfect square either, there are solutions to x^2 = 12 mod 46, such as x = 14, x = 32. Thus 12 is not in the sequence.
MATHEMATICA
Complement[Range[45], PowerMod[Range[46], 2, 46]] (* Alonso del Arte, Nov 23 2019 *)
PROG
(Scala) val squaresMod46 = (1 to 46).map(n => n * n).map(_ % 46)
(0 to 45).diff(squaresMod46) // Alonso del Arte, Nov 23 2019
CROSSREFS
KEYWORD
nonn,fini,full,easy
AUTHOR
EXTENSIONS
Incorrect term 23 removed by Alonso del Arte, Dec 01 2019
STATUS
approved