|
|
A010462
|
|
Squares mod 30.
|
|
7
|
|
|
0, 1, 4, 6, 9, 10, 15, 16, 19, 21, 24, 25
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,3
|
|
COMMENTS
|
|
|
LINKS
|
|
|
EXAMPLE
|
3^2 = 9, so 9 is in the sequence.
10^2 and 20^2 are both congruent to 10 mod 30, so 10 is in the sequence.
There are no solutions to x^2 = 11 mod 30, so 11 is not in the sequence.
|
|
MATHEMATICA
|
|
|
PROG
|
(Scala) (1 to 30).map(n => n * n).map(_ % 30).toSet.toSeq.sorted // Alonso del Arte, Nov 30 2019
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,fini,full
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|