login
Squares mod 83.
1

%I #22 Sep 08 2022 08:44:37

%S 0,1,3,4,7,9,10,11,12,16,17,21,23,25,26,27,28,29,30,31,33,36,37,38,40,

%T 41,44,48,49,51,59,61,63,64,65,68,69,70,75,77,78,81

%N Squares mod 83.

%t Union[PowerMod[Range[83], 2, 83]] (* _Alonso del Arte_, Jan 23 2020 *)

%o (Sage) [quadratic_residues(83)] # _Zerinvary Lajos_, May 28 2009

%o (Scala) (1 to 83).map(n => n * n % 83).toSet.toSeq.sorted // _Alonso del Arte_, Jan 23 2020

%o (Magma) [n: n in [0..82] | IsSquare(R! n) where R := ResidueClassRing(83)]; // _Vincenzo Librandi_, Jan 24 2020

%Y Cf. A028796.

%K nonn,fini,full,easy

%O 1,3

%A _N. J. A. Sloane_