This site is supported by donations to The OEIS Foundation.

 Please make a donation to keep the OEIS running. We are now in our 55th year. In the past year we added 12000 new sequences and reached 8000 citations (which often say "discovered thanks to the OEIS"). We need to raise money to hire someone to manage submissions, which would reduce the load on our editors and speed up editing. Other ways to donate

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A028742 Nonsquares mod 29. 1

%I

%S 2,3,8,10,11,12,14,15,17,18,19,21,26,27

%N Nonsquares mod 29.

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

%e Although 13 is not a perfect square either, there are solutions to x^2 = 13 mod 29, such as x = 10, x = 19, so 13 is not in the sequence.

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

%o (Scala) val squaresMod29 = (1 to 29).map(n => n * n).map(_ % 29)

%o (0 to 28).diff(squaresMod29) // _Alonso del Arte_, Nov 29 2019

%Y Cf. A010391.

%K nonn,fini,full,changed

%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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified December 9 17:18 EST 2019. Contains 329879 sequences. (Running on oeis4.)