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

A010383
Squares mod 21.
1
0, 1, 4, 7, 9, 15, 16, 18
OFFSET
1,3
MATHEMATICA
Union[PowerMod[Range[21], 2, 21]] (* Alonso del Arte, Dec 21 2019 *)
PROG
(Sage) [quadratic_residues(21)] # Zerinvary Lajos, May 24 2009
(Scala) (1 to 21).map(n => (n * n) % 21).toSet.toSeq.sorted // Alonso del Arte, Dec 21 2019
CROSSREFS
Row 21 of A096008.
Cf. A028734.
Sequence in context: A032778 A282058 A210497 * A010403 A032709 A243172
KEYWORD
nonn,fini,full,easy
STATUS
approved