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