|
|
A028736
|
|
Nonsquares mod 23.
|
|
3
|
|
|
5, 7, 10, 11, 14, 15, 17, 19, 20, 21, 22
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
REFERENCES
|
Srinivasa Ramanujan, Collected Papers, Ed. G. H. Hardy et al., Cambridge 1927; Chelsea, NY, 1962. See "Congruence properties of partitions", p. 230. - N. J. A. Sloane, Jun 01 2014
|
|
LINKS
|
|
|
EXAMPLE
|
Since 11 is not a perfect square and there are no solutions to x^2 = 11 mod 23, 11 is in the sequence.
Although 12 is not a perfect square either, there are solutions to x^2 = 12 mod 23, such as x = 9, x = 14. Thus 12 is not in the sequence.
|
|
MATHEMATICA
|
|
|
PROG
|
(Scala) val squaresMod23 = (0 to 22).map(n => n * n).map(_ % 23)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,fini,full
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|