login
Squares mod 79.
1

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

%S 0,1,2,4,5,8,9,10,11,13,16,18,19,20,21,22,23,25,26,31,32,36,38,40,42,

%T 44,45,46,49,50,51,52,55,62,64,65,67,72,73,76

%N Squares mod 79.

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

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

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

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

%Y Cf. A028792.

%K nonn,fini,full,easy

%O 1,3

%A _N. J. A. Sloane_