[go: up one dir, main page]

login
Search: a010423 -id:a010423
     Sort: relevance | references | number | modified | created      Format: long | short | data
Squares mod 31.
+10
3
0, 1, 2, 4, 5, 7, 8, 9, 10, 14, 16, 18, 19, 20, 25, 28
OFFSET
1,3
MATHEMATICA
Union[PowerMod[Range[31], 2, 31]] (* Alonso del Arte, Dec 31 2019 *)
PROG
(Sage) [quadratic_residues(31)] # Zerinvary Lajos, May 24 2009
(Scala) (1 to 31).map(n => n * n % 31).toSet.toSeq.sorted // Alonso del Arte, Dec 31 2019
CROSSREFS
Row 31 of A096008.
KEYWORD
nonn,fini,full,easy
STATUS
approved
Nonsquares mod 62.
+10
1
3, 6, 11, 12, 13, 15, 17, 21, 22, 23, 24, 26, 27, 29, 30, 34, 37, 42, 43, 44, 46, 48, 52, 53, 54, 55, 57, 58, 60, 61
OFFSET
1,1
MATHEMATICA
Complement[Range[0, 61], PowerMod[Range[62], 2, 62]] (* Alonso del Arte, Dec 31 2019 *)
PROG
(Scala) (0 to 61).diff((1 to 62).map(n => n * n % 62)) // Alonso del Arte, Dec 31 2019
CROSSREFS
Cf. A010423.
KEYWORD
nonn,fini,full,easy
EXTENSIONS
Incorrect term 31 removed by Alonso del Arte, Nov 29 2019
STATUS
approved

Search completed in 0.006 seconds