login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Nonsquares mod 25.
2

%I #15 Dec 25 2019 15:31:34

%S 2,3,5,7,8,10,12,13,15,17,18,20,22,23

%N Nonsquares mod 25.

%t Complement[Range[0, 24], PowerMod[Range[0, 24], 2, 25]] (* _Alonso del Arte_, Nov 25 2019 *)

%o (Scala) val squaresMod25 = (0 to 24).map(n => n * n).map(_ % 25)

%o (0 to 24).diff(squaresMod25) // _Alonso del Arte_, Nov 25 2019

%Y Cf. A010387.

%K nonn,fini,full,easy

%O 1,1

%A _N. J. A. Sloane_