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”).

A028800
Nonsquares mod 87.
1
2, 3, 5, 8, 10, 11, 12, 14, 15, 17, 18, 19, 20, 21, 23, 26, 27, 29, 31, 32, 35, 37, 38, 39, 40, 41, 43, 44, 46, 47, 48, 50, 53, 55, 56, 59, 60, 61, 62, 65, 66, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 79, 80, 83, 84, 85, 86
OFFSET
1,1
MATHEMATICA
Complement[Range[0, 86], PowerMod[Range[87], 2, 87]] (* Alonso del Arte, Dec 29 2019 *)
PROG
(Scala) (0 to 86).diff((1 to 87).map(n => n * n % 87)) // Alonso del Arte, Dec 29 2019
(Magma) [n: n in [0..86] | not IsSquare(R! n) where R:= ResidueClassRing(87)]; // Vincenzo Librandi, Dec 30 2019
CROSSREFS
Cf. A010448.
Sequence in context: A028770 A321702 A351876 * A028841 A028840 A189143
KEYWORD
nonn,fini,full,easy
STATUS
approved