OFFSET
1,3
MATHEMATICA
Union[PowerMod[Range[31], 2, 31]] (* Alonso del Arte, Dec 31 2019 *)
PROG
(Sage) [quadratic_residues(31)] # Zerinvary Lajos, May 24 2009
(Scala) (1 to 31).map(n => n * n % 31).toSet.toSeq.sorted // Alonso del Arte, Dec 31 2019
KEYWORD
nonn,fini,full,easy
AUTHOR
STATUS
approved