A010391 Squares mod 29.
0, 1, 4, 5, 6, 7, 9, 13, 16, 20, 22, 23, 24, 25, 28
Offset: 1
Programs
-
Mathematica
Union[PowerMod[Range[29], 2, 29]] (* Alonso del Arte, Nov 29 2019 *)
-
Sage
[quadratic_residues(29)] # Zerinvary Lajos, May 24 2009
-
Scala
(1 to 29).map(n => n * n).map( % 29).toSet.toSeq.sorted // _Alonso del Arte, Nov 29 2019
Comments