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!)
A028742 Nonsquares mod 29. 1
2, 3, 8, 10, 11, 12, 14, 15, 17, 18, 19, 21, 26, 27 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
Since 12 is not a perfect square and there are no solutions to x^2 = 12 mod 29, 12 is in the sequence.
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.
MATHEMATICA
Complement[Range[0, 28], PowerMod[Range[29], 2, 29]] (* Alonso del Arte, Nov 29 2019 *)
PROG
(Scala) val squaresMod29 = (1 to 29).map(n => n * n).map(_ % 29)
(0 to 28).diff(squaresMod29) // Alonso del Arte, Nov 29 2019
CROSSREFS
Cf. A010391.
Sequence in context: A342849 A247580 A345352 * A028771 A023709 A317539
KEYWORD
nonn,fini,full
AUTHOR
STATUS
approved

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 April 24 16:25 EDT 2024. Contains 371961 sequences. (Running on oeis4.)