A070459 a(n) = n^2 mod 37.
0, 1, 4, 9, 16, 25, 36, 12, 27, 7, 26, 10, 33, 21, 11, 3, 34, 30, 28, 28, 30, 34, 3, 11, 21, 33, 10, 26, 7, 27, 12, 36, 25, 16, 9, 4, 1, 0, 1, 4, 9, 16, 25, 36, 12, 27, 7, 26, 10, 33, 21, 11, 3, 34, 30, 28, 28, 30, 34, 3, 11, 21, 33, 10, 26, 7, 27, 12, 36, 25, 16, 9, 4, 1, 0, 1, 4
Offset: 0
Links
- G. C. Greubel, Table of n, a(n) for n = 0..1000
- Index entries for linear recurrences with constant coefficients, signature (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1).
Programs
-
Mathematica
PowerMod[Range[0, 110], 2, 37] (* Harvey P. Dale, Aug 22 2015 *)
-
PARI
a(n)=n^2%37 \\ Charles R Greathouse IV, Apr 06 2016
-
Scala
(0 to 99).map(n => (n * n) % 37) // Alonso del Arte, Jun 24 2019
Formula
a(n) = a(n-37). - G. C. Greubel, Mar 25 2016
Comments