OFFSET
1,3
MATHEMATICA
Union[PowerMod[Range[87], 2, 87]] (* Alonso del Arte, Dec 29 2019 *)
PROG
(Sage) [quadratic_residues(87)] # Zerinvary Lajos, May 28 2009
(Scala) (1 to 87).map(n => n * n % 87).toSet.toSeq.sorted // Alonso del Arte, Dec 29 2019
(Magma) [n: n in [0..86] | IsSquare(R! n) where R:= ResidueClassRing(87)]; // Vincenzo Librandi, Dec 30 2019
CROSSREFS
KEYWORD
nonn,fini,full,easy
AUTHOR
STATUS
approved