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 82.
2

%I #16 May 01 2020 23:05:16

%S 3,6,7,11,12,13,14,15,17,19,22,24,26,27,28,29,30,34,35,38,44,47,48,52,

%T 53,54,55,56,58,60,63,65,67,68,69,70,71,75,76,79

%N Nonsquares mod 82.

%t Complement[Range[0, 81], PowerMod[Range[82], 2, 82]] (* _Alonso del Arte_, May 01 2020 *)

%o (PARI) for(k=0, 82, if(!issquare(Mod(k, 82)), print1(k, ", "))) \\ _Hugo Pfoertner_, Nov 29 2019

%o (Scala) (0 to 81).diff((1 to 82).map(n => n * n % 82)) // _Alonso del Arte_, May 01 2020

%Y Cf. A010443, A028754.

%K nonn,fini,full,easy

%O 1,1

%A _N. J. A. Sloane_.

%E Incorrect term 41 removed by _Alonso del Arte_, Nov 29 2019