login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A028734 Nonsquares mod 21. 1

%I #14 Dec 21 2019 00:52:44

%S 2,3,5,6,8,10,11,12,13,14,17,19,20

%N Nonsquares mod 21.

%e Since 14 is not a perfect square and there are no solutions to x^2 = 14 mod 21, 14 is in the sequence.

%e Although 15 is not a perfect square either, there are solutions to x^2 = 15 mod 21, such as x = 6, x = 15. Hence 15 is not in the sequence.

%t Complement[Range[20], PowerMod[Range[20], 2, 21]] (* _Alonso del Arte_, Nov 21 2019 *)

%o (Scala) val squaresMod21 = (0 to 20).map(n => n * n).map(_ % 21)

%o (0 to 20).diff(squaresMod21) // _Alonso del Arte_, Nov 21 2019

%Y Cf. A010383.

%K nonn,fini,full,easy

%O 1,1

%A _N. J. A. Sloane_

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 11 11:53 EDT 2024. Contains 375069 sequences. (Running on oeis4.)