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