The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A028739 Nonsquares mod 26. 1

%I #14 Nov 27 2019 01:39:05

%S 2,5,6,7,8,11,15,18,19,20,21,24

%N Nonsquares mod 26.

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

%e Although 3 is not a perfect square either, there are solutions to x^2 = 3 mod 26, such as x = 9, x = 17, 3 is not in the sequence.

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

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

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

%Y Cf. A010388.

%K nonn,fini,full

%O 1,1

%A _N. J. A. Sloane_

%E Incorrect term 13 removed by _Alonso del Arte_, Nov 26 2019

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 June 4 22:04 EDT 2024. Contains 373102 sequences. (Running on oeis4.)