OFFSET
1,3
MAPLE
sort(convert({seq(i^2 mod 24, i=0..12)}, list)); # Robert Israel, Apr 19 2017
MATHEMATICA
Union[PowerMod[Range[24], 2, 24]] (* Alonso del Arte, Apr 06 2017 *)
PROG
(Sage) [quadratic_residues(24)] # Zerinvary Lajos, May 24 2009
(Scala) (1 to 24).map(n => (n * n) % 24).toSet.toSeq.sorted // Alonso del Arte, Dec 24 2019
CROSSREFS
KEYWORD
nonn,fini,full,easy
AUTHOR
STATUS
approved